Commit d8025081 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Hans Verkuil

media: venus: Warn only once about problems in .remove()

The only effect of returning an error code in a remove callback is that
the driver core emits a warning. The device is unbound anyhow.

As the remove callback already emits a (quite verbose) warning when ret
is non-zero, return zero to suppress the additional warning.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent 428bbf4b
...@@ -448,7 +448,7 @@ static int venus_remove(struct platform_device *pdev) ...@@ -448,7 +448,7 @@ static int venus_remove(struct platform_device *pdev)
mutex_destroy(&core->lock); mutex_destroy(&core->lock);
venus_dbgfs_deinit(core); venus_dbgfs_deinit(core);
return ret; return 0;
} }
static void venus_core_shutdown(struct platform_device *pdev) static void venus_core_shutdown(struct platform_device *pdev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment