diff options
author | Dawei Li <set_pte_at@outlook.com> | 2023-02-01 22:36:19 +0800 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2024-03-07 23:06:19 +1100 |
commit | 9db2235326c4b868b6e065dfa3a69011ee570848 (patch) | |
tree | 3f338282365ae6aeb5045577a5d333a8ff1ac428 /sound/aoa | |
parent | c2e5d70cf05b48bfbd5b6625bbd0ec3052cecd5d (diff) | |
download | linux-9db2235326c4b868b6e065dfa3a69011ee570848.tar.gz linux-9db2235326c4b868b6e065dfa3a69011ee570848.tar.bz2 linux-9db2235326c4b868b6e065dfa3a69011ee570848.zip |
powerpc/macio: Make remove callback of macio driver void returned
Commit fc7a6209d571 ("bus: Make remove callback return void") forces
bus_type::remove be void-returned, it doesn't make much sense for any
bus based driver implementing remove callbalk to return non-void to
its caller.
This change is for macio bus based drivers.
Signed-off-by: Dawei Li <set_pte_at@outlook.com>
Acked-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/TYCP286MB232391520CB471E7C8D6EA84CAD19@TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM
Diffstat (limited to 'sound/aoa')
-rw-r--r-- | sound/aoa/soundbus/i2sbus/core.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/aoa/soundbus/i2sbus/core.c b/sound/aoa/soundbus/i2sbus/core.c index 3f49a9e28bfc..b8ff5cccd0c8 100644 --- a/sound/aoa/soundbus/i2sbus/core.c +++ b/sound/aoa/soundbus/i2sbus/core.c @@ -365,15 +365,13 @@ static int i2sbus_probe(struct macio_dev* dev, const struct of_device_id *match) return 0; } -static int i2sbus_remove(struct macio_dev* dev) +static void i2sbus_remove(struct macio_dev *dev) { struct i2sbus_control *control = dev_get_drvdata(&dev->ofdev.dev); struct i2sbus_dev *i2sdev, *tmp; list_for_each_entry_safe(i2sdev, tmp, &control->list, item) soundbus_remove_one(&i2sdev->sound); - - return 0; } #ifdef CONFIG_PM |