ARM: 9049/1: locomo: make locomo bus's remove callback return void
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 14 Jan 2021 16:40:06 +0000 (17:40 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Mon, 1 Feb 2021 19:44:30 +0000 (19:44 +0000)
commit33d6d2bb7e6bf1ec60d1f4982015db8175c4cba9
treeb5e0ef7bf2e0766a4cc800983e0986b8b7733558
parent074a6bda18ce486695ad7308ac39e60cf8b04c39
ARM: 9049/1: locomo: make locomo bus's remove callback return void

The driver core ignores the return value of struct bus_type::remove
because there is only little that can be done. To simplify the quest to
make this function return void, let struct locomo_driver::remove return
void, too. All users already unconditionally return 0, this commit makes
it obvious that returning an error code is a bad idea and ensures future
users behave accordingly.

Link: https://lore.kernel.org/r/20201126110140.2021758-1-u.kleine-koenig@pengutronix.de
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/common/locomo.c
arch/arm/include/asm/hardware/locomo.h
arch/arm/mach-sa1100/collie.c
drivers/input/keyboard/locomokbd.c
drivers/video/backlight/locomolcd.c