]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: int340x: processor_thermal: Use module_pci_driver() macro
authorShang XiaoJing <shangxiaojing@huawei.com>
Thu, 22 Sep 2022 12:31:41 +0000 (20:31 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 24 Sep 2022 17:22:09 +0000 (19:22 +0200)
commitc4552b957bdb1534484c245e094eee2761974501
treefedf09a9d74e63dc12449c0926d31e7782ff0198
parentc393eb2f147dcfecef1b2d9166687532697d15da
thermal: int340x: processor_thermal: Use module_pci_driver() macro

Since PCI provides helper macro module_pci_driver(), the
module_init/exit code can be replaced with it.

Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c
drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci_legacy.c