]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
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)
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

index ef75b63f5894e5c34e506d961a582b1e90da9345..b5352900463fb9b4fc68605a73feb8875961f554 100644 (file)
@@ -62,6 +62,7 @@ static const struct platform_device_id ntc_thermistor_id[] = {
        [NTC_SSG1404001221]   = { "ssg1404_001221",  TYPE_NCPXXWB473 },
        [NTC_LAST]            = { },
 };
+MODULE_DEVICE_TABLE(platform, ntc_thermistor_id);
 
 /*
  * A compensation table should be sorted by the values of .ohm