]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hwmon: (ntc_thermistor) fix module autoloading
authorYuntao Liu <liuyuntao12@huawei.com>
Thu, 15 Aug 2024 08:30:21 +0000 (08:30 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:10:50 +0000 (15:10 +0200)
commitbb58bae2fd329be40c7aa6d4c8a2dac3b7973071
treec07e462b6f6f9072d450df9401b8d85f2d364487
parenta2cb89bb90542350c21d60a0df5ca72441325560
hwmon: (ntc_thermistor) fix module autoloading

[ Upstream commit b6964d66a07a9003868e428a956949e17ab44d7e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwmon/ntc_thermistor.c