Skip to content

Commit b6964d6

Browse files
Yuntao Liugroeck
authored andcommitted
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: 9e8269d ("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>
1 parent 720c741 commit b6964d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/hwmon/ntc_thermistor.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ static const struct platform_device_id ntc_thermistor_id[] = {
6262
[NTC_SSG1404001221] = { "ssg1404_001221", TYPE_NCPXXWB473 },
6363
[NTC_LAST] = { },
6464
};
65+
MODULE_DEVICE_TABLE(platform, ntc_thermistor_id);
6566

6667
/*
6768
* A compensation table should be sorted by the values of .ohm

0 commit comments

Comments
 (0)