diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2021-10-12 17:39:35 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2021-11-05 14:40:26 +0000 |
commit | ec14d90dee8ec6960324ae9f1116103efcde8a52 (patch) | |
tree | a913638c578031e91ac908238c26f69632573804 /drivers/mfd/tps65912-spi.c | |
parent | 356bbabade8e56efe2834159b5c062b8aff277dd (diff) |
mfd: tps65912: Make tps65912_device_exit() return void
Up to now tps65912_device_exit() returns zero unconditionally. Make it
return void instead which makes it easier to see in the callers that
there is no error to handle.
Also the return value of i2c and spi remove callbacks is ignored anyway.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20211012153945.2651412-11-u.kleine-koenig@pengutronix.de
Diffstat (limited to 'drivers/mfd/tps65912-spi.c')
-rw-r--r-- | drivers/mfd/tps65912-spi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mfd/tps65912-spi.c b/drivers/mfd/tps65912-spi.c index 21a8d6ac5c4a..d701926aa46e 100644 --- a/drivers/mfd/tps65912-spi.c +++ b/drivers/mfd/tps65912-spi.c @@ -54,7 +54,9 @@ static int tps65912_spi_remove(struct spi_device *spi) { struct tps65912 *tps = spi_get_drvdata(spi); - return tps65912_device_exit(tps); + tps65912_device_exit(tps); + + return 0; } static const struct spi_device_id tps65912_spi_id_table[] = { |