diff options
| author | Dawei Li <[email protected]> | 2023-01-06 23:13:49 +0800 |
|---|---|---|
| committer | Takashi Iwai <[email protected]> | 2023-01-25 09:34:20 +0100 |
| commit | 7351324c6f486ae35865b430c8e30f07da9f378e (patch) | |
| tree | 4b2071e1659befd4456ccca9c5874341788c9e39 /include | |
| parent | bea11f0aa17a42303cfe9dae780bfc36f1947605 (diff) | |
ALSA: ac97: make remove callback of ac97 driver void returned
Since 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.
As such, change the remove function for ac97 based drivers to return
void.
Signed-off-by: Dawei Li <[email protected]>
Link: https://lore.kernel.org/r/TYCP286MB2323A5AB1B2578EF4FA15DA7CAFB9@TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sound/ac97/codec.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/ac97/codec.h b/include/sound/ac97/codec.h index 9792d25fa369..2fc641cb1982 100644 --- a/include/sound/ac97/codec.h +++ b/include/sound/ac97/codec.h @@ -63,7 +63,7 @@ struct ac97_codec_device { struct ac97_codec_driver { struct device_driver driver; int (*probe)(struct ac97_codec_device *); - int (*remove)(struct ac97_codec_device *); + void (*remove)(struct ac97_codec_device *dev); void (*shutdown)(struct ac97_codec_device *); const struct ac97_id *id_table; }; |