]> 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)
commit7e1b86476feb0c8e27864cfbc96e3da96c431050
treefedf09a9d74e63dc12449c0926d31e7782ff0198
parent2ae17b0f18e82b37d528e13b955998dfc2bb6d02
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