mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
Drivers: hv: Make remove callback of hyperv driver void returned
Since commit fc7a6209d5 ("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 Hyper-V VMBus based
drivers to return void.
Signed-off-by: Dawei Li <set_pte_at@outlook.com>
Link: https://lore.kernel.org/r/TYCP286MB2323A93C55526E4DF239D3ACCAFA9@TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM
Signed-off-by: Wei Liu <wei.liu@kernel.org>
This commit is contained in:
@@ -1273,7 +1273,7 @@ struct hv_driver {
|
||||
} dynids;
|
||||
|
||||
int (*probe)(struct hv_device *, const struct hv_vmbus_device_id *);
|
||||
int (*remove)(struct hv_device *);
|
||||
void (*remove)(struct hv_device *dev);
|
||||
void (*shutdown)(struct hv_device *);
|
||||
|
||||
int (*suspend)(struct hv_device *);
|
||||
|
||||
Reference in New Issue
Block a user