thermal: intel: int340x: simplify the code with module_platform_driver()
authorYang Yingliang <yangyingliang@huawei.com>
Fri, 4 Aug 2023 09:21:01 +0000 (17:21 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 22 Aug 2023 19:46:13 +0000 (21:46 +0200)
commit1a6e1004f3225bebbe27e1575c22484a56e96f56
treee7ee81b429ca3ae5b4a6c11abc30627f66967ff8
parentb616959a59eed098fe34aa156d96c37880feabc6
thermal: intel: int340x: simplify the code with module_platform_driver()

The init/exit() of the driver only calls platform_driver_{un}register(),
so it can be simpilfied by using module_platform_driver().

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/intel/int340x_thermal/int3401_thermal.c