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)
commit53e41b85939547cda40a7b9748c5a1f9b1f1a865
treefedf09a9d74e63dc12449c0926d31e7782ff0198
parentc4e927da893b2d9ebe71ac206ed021df363771e4
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