linux-samsung-r9q2/include/linux/device
Greg Kroah-Hartman 4a46ac9d64 driver core: class: specify the module owner in __class_register()
There's no need to manually have to set the module owner of a class, the
compiler should do it automatically for you, so add a module * to the
__class_register() function and allow it to set the module owner
automatically.

This will let us move the module pointer out of struct class eventually,
as it should not be embedded in there if we wish for it to be a
read-only structure eventually.

And, funny story, this module pointer isn't even being used for
anything, so while we will keep it around for now, it's not like it even
matters.

Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Link: https://lore.kernel.org/r/20230313181843.1207845-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-03-17 15:16:24 +01:00
..
bus.h driver core: bus: add bus_get_dev_root() function 2023-02-10 10:16:42 +01:00
class.h driver core: class: specify the module owner in __class_register() 2023-03-17 15:16:24 +01:00
driver.h driver core: Make driver_deferred_probe_timeout a static variable 2023-01-11 16:06:40 +01:00