[PATCH] drm/bridge: use devm_add_action_or_reset() to handle failed condition

2020-12-17 Thread Tian Tao
switch to using devm_add_action_or_reset() instead of devm_add_action to avoid call the cec_delete_adapter,when devm_add_action_or_reset return failed. Signed-off-by: Tian Tao --- drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --gi

Re: [PATCH] drm/bridge: use devm_add_action_or_reset() to handle failed condition

2020-12-16 Thread Laurent Pinchart
Hi Tian, Thank you for the patch. On Wed, Dec 16, 2020 at 08:22:32PM +0800, Tian Tao wrote: > switch to using devm_add_action_or_reset() instead of devm_add_action to > avoid call the cec_delete_adapter,when devm_add_action_or_reset return > failed. > > Signed-off-by: Tian Tao Reviewed-by: Lau