mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 12:21:22 -05:00
hwmon: (gsc-hwmon) fix module autoloading
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table. Signed-off-by: Liao Chen <liaochen4@huawei.com> Message-ID: <20240814024555.3875387-1-liaochen4@huawei.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
@@ -400,6 +400,7 @@ static const struct of_device_id gsc_hwmon_of_match[] = {
|
||||
{ .compatible = "gw,gsc-adc", },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, gsc_hwmon_of_match);
|
||||
|
||||
static struct platform_driver gsc_hwmon_driver = {
|
||||
.driver = {
|
||||
|
||||
Reference in New Issue
Block a user