]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
hwmon: (gsc-hwmon) fix module autoloading
authorLiao Chen <liaochen4@huawei.com>
Wed, 14 Aug 2024 02:45:55 +0000 (02:45 +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.

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>
drivers/hwmon/gsc-hwmon.c

index cb2f01dc432666093ac03465b5966d5c0456fca6..4514f3ed90ccd6c422ab9c918f8a08f5f8c84dbd 100644 (file)
@@ -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 = {