Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Fixes: 2a81ada32f0e ("driver core: make struct bus_type.uevent() take a const *")
Link: https://lore.kernel.org/r/20230201125642.624255-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

-7
-7
drivers/sh/maple/maple.c
··· 760 760 return 0; 761 761 } 762 762 763 - static int maple_bus_uevent(struct device *dev, 764 - struct kobj_uevent_env *env) 765 - { 766 - return 0; 767 - } 768 - 769 763 static void maple_bus_release(struct device *dev) 770 764 { 771 765 } ··· 776 782 struct bus_type maple_bus_type = { 777 783 .name = "maple", 778 784 .match = maple_match_bus_driver, 779 - .uevent = maple_bus_uevent, 780 785 }; 781 786 EXPORT_SYMBOL_GPL(maple_bus_type); 782 787