diff options
author | Greg Kroah-Hartman <[email protected]> | 2023-02-01 13:56:42 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-02-01 14:01:32 +0100 |
commit | a69ea7a76d52353b17d7bedf43818c2578517e9e (patch) | |
tree | fbbcf9625190a7eaf945fa70a42260ab1f8fc678 | |
parent | 921e672dee91af86f8f9e44a067c735ebac0744b (diff) |
maple: remove unneeded maple_bus_uevent() callback.
The driver core recently changed the uevent bus callback to take a const
pointer, and the maple_bus_uevent() was not correctly fixed up. Instead
of fixing the function parameter types, just remove the callback
entirely as it does not do anything, so it is not necessary.
Cc: Yoshinori Sato <[email protected]>
Cc: Rich Felker <[email protected]>
Cc: Hans de Goede <[email protected]>
Cc: "Rafael J. Wysocki" <[email protected]>
Reported-by: Linux Kernel Functional Testing <[email protected]>
Reported-by: Naresh Kamboju <[email protected]>
Fixes: 2a81ada32f0e ("driver core: make struct bus_type.uevent() take a const *")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/sh/maple/maple.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/sh/maple/maple.c b/drivers/sh/maple/maple.c index e24e220e56ee..e05473c5c267 100644 --- a/drivers/sh/maple/maple.c +++ b/drivers/sh/maple/maple.c @@ -760,12 +760,6 @@ static int maple_match_bus_driver(struct device *devptr, return 0; } -static int maple_bus_uevent(struct device *dev, - struct kobj_uevent_env *env) -{ - return 0; -} - static void maple_bus_release(struct device *dev) { } @@ -782,7 +776,6 @@ static struct maple_driver maple_unsupported_device = { struct bus_type maple_bus_type = { .name = "maple", .match = maple_match_bus_driver, - .uevent = maple_bus_uevent, }; EXPORT_SYMBOL_GPL(maple_bus_type); |