]> www.infradead.org Git - users/dwmw2/linux.git/commit
hwmon: (ntc_thermistor) fix module autoloading
authorYuntao Liu <liuyuntao12@huawei.com>
Thu, 15 Aug 2024 08:30:21 +0000 (08:30 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 27 Aug 2024 15:10:23 +0000 (08:10 -0700)
commitb6964d66a07a9003868e428a956949e17ab44d7e
tree67253189ec91dfaaa7bdbb84aa28fe01b54db6a8
parent720c741c22d18b03eb017683f001a645a23a2e65
hwmon: (ntc_thermistor) fix module autoloading

Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.

Fixes: 9e8269de100d ("hwmon: (ntc_thermistor) Add DT with IIO support to NTC thermistor driver")
Signed-off-by: Yuntao Liu <liuyuntao12@huawei.com>
Message-ID: <20240815083021.756134-1-liuyuntao12@huawei.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ntc_thermistor.c