[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <0f0971ca-09dd-4c51-944a-1f05e0a72a32@roeck-us.net>
Date: Tue, 13 Aug 2024 20:22:12 -0700
From: Guenter Roeck <linux@...ck-us.net>
To: Liao Chen <liaochen4@...wei.com>
Cc: linux-hwmon@...r.kernel.org, linux-kernel@...r.kernel.org,
tharvey@...eworks.com, jdelvare@...e.com
Subject: Re: [PATCH -next] hwmon: (gsc-hwmon) fix module autoloading
On Wed, Aug 14, 2024 at 02:45:55AM +0000, Liao Chen wrote:
> 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@...wei.com>
Applied.
Thanks,
Guenter
> ---
> drivers/hwmon/gsc-hwmon.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/hwmon/gsc-hwmon.c b/drivers/hwmon/gsc-hwmon.c
> index cb2f01dc4326..4514f3ed90cc 100644
> --- a/drivers/hwmon/gsc-hwmon.c
> +++ b/drivers/hwmon/gsc-hwmon.c
> @@ -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 = {
Powered by blists - more mailing lists