[PATCH 3/3] drm/i2c/tda9950: use devm_add_action_or_reset() helper
Dmitry Baryshkov
dmitry.baryshkov at linaro.org
Sun Sep 22 15:19:41 UTC 2024
On Sat, Sep 07, 2024 at 03:13:05PM GMT, He Lugang wrote:
> Use devm_add_action_or_reset() to release resources in case of failure,
> because the cleanup function will be automatically called.
>
> Signed-off-by: He Lugang <helugang at uniontech.com>
> ---
> drivers/gpu/drm/i2c/tda9950.c | 12 +++---------
> 1 file changed, 3 insertions(+), 9 deletions(-)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov at linaro.org>
--
With best wishes
Dmitry
More information about the dri-devel
mailing list