Skip to content

Commit fa8df3c

Browse files
Liao Chengroeck
authored andcommitted
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>
1 parent 63be321 commit fa8df3c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/hwmon/gsc-hwmon.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ static const struct of_device_id gsc_hwmon_of_match[] = {
400400
{ .compatible = "gw,gsc-adc", },
401401
{}
402402
};
403+
MODULE_DEVICE_TABLE(of, gsc_hwmon_of_match);
403404

404405
static struct platform_driver gsc_hwmon_driver = {
405406
.driver = {

0 commit comments

Comments
 (0)