Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Liao Chen and committed by
Guenter Roeck
fa8df3cb 63be321e

+1
+1
drivers/hwmon/gsc-hwmon.c
··· 400 400 { .compatible = "gw,gsc-adc", }, 401 401 {} 402 402 }; 403 + MODULE_DEVICE_TABLE(of, gsc_hwmon_of_match); 403 404 404 405 static struct platform_driver gsc_hwmon_driver = { 405 406 .driver = {