summaryrefslogtreecommitdiffstats
path: root/drivers/media/spi
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2021-10-26 21:40:10 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-12-07 11:29:57 +0100
commit48f45c2a969b5a012fda468350706c3a479f0707 (patch)
treea43514b11b79c5e702efa27f73740be046645628 /drivers/media/spi
parent3da3ee3f0d50d4019628081918515e05bde51792 (diff)
downloadlinux-stable-48f45c2a969b5a012fda468350706c3a479f0707.tar.gz
linux-stable-48f45c2a969b5a012fda468350706c3a479f0707.tar.bz2
linux-stable-48f45c2a969b5a012fda468350706c3a479f0707.zip
media: tua9001: Improve messages in .remove's error path
If disabling the hardware fails the driver propagates the error code to the i2c core. However this only results in a generic error message; the device still disappears. So instead emit a message that better describes the actual problem than the i2c core's "remove failed (ESOMETHING), will be ignored" and return 0 to suppress the generic message. Link: https://lore.kernel.org/linux-media/20211026194010.109029-1-u.kleine-koenig@pengutronix.de Cc: linux-media@vger.kernel.org, kernel@pengutronix.de Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/spi')
0 files changed, 0 insertions, 0 deletions