drivers: remove struct module * setting from struct class
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Mar 2023 18:18:33 +0000 (19:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2023 14:16:27 +0000 (15:16 +0100)
commit10a03c36b7dd7759788ebc613091d313b60f93e0
tree085c46fd6e2a9e6fde35b473ca33493381670e17
parent4a46ac9d64030d9f6f18baaf115a3558880c1ae2
drivers: remove struct module * setting from struct class

There is no need to manually set the owner of a struct class, as the
registering function does it automatically, so remove all of the
explicit settings from various drivers that did so as it is unneeded.

This allows us to remove this pointer entirely from this structure going
forward.

Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Link: https://lore.kernel.org/r/20230313181843.1207845-2-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
37 files changed:
arch/mips/kernel/vpe-mt.c
drivers/base/core.c
drivers/base/devcoredump.c
drivers/block/pktcdvd.c
drivers/block/zram/zram_drv.c
drivers/gpio/gpiolib-sysfs.c
drivers/hwmon/hwmon.c
drivers/isdn/mISDN/core.c
drivers/media/pci/ddbridge/ddbridge-core.c
drivers/mfd/cros_ec_dev.c
drivers/misc/enclosure.c
drivers/mtd/mtdcore.c
drivers/mtd/ubi/build.c
drivers/mux/core.c
drivers/net/ipvlan/ipvtap.c
drivers/net/macvtap.c
drivers/nvme/host/fc.c
drivers/platform/chrome/wilco_ec/event.c
drivers/platform/chrome/wilco_ec/telemetry.c
drivers/platform/x86/intel/pmt/class.c
drivers/platform/x86/intel_scu_ipc.c
drivers/ptp/ptp_ocp.c
drivers/pwm/sysfs.c
drivers/rapidio/rio-driver.c
drivers/scsi/sd.c
drivers/soc/qcom/rmtfs_mem.c
drivers/spi/spi.c
drivers/staging/fieldbus/dev_core.c
drivers/staging/greybus/loopback.c
drivers/staging/greybus/vibrator.c
drivers/usb/typec/class.c
drivers/usb/typec/mux.c
drivers/usb/typec/pd.c
drivers/usb/typec/retimer.c
drivers/watchdog/watchdog_dev.c
fs/ksmbd/server.c
net/wireless/sysfs.c