mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Liao Chen <liaochen4@huawei.com>
Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org,
	tharvey@gateworks.com, jdelvare@suse.com
Subject: Re: [PATCH -next] hwmon: (gsc-hwmon) fix module autoloading
Date: Tue, 13 Aug 2024 20:22:12 -0700	[thread overview]
Message-ID: <0f0971ca-09dd-4c51-944a-1f05e0a72a32@roeck-us.net> (raw)
In-Reply-To: <20240814024555.3875387-1-liaochen4@huawei.com>

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@huawei.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 = {

      reply	other threads:[~2024-08-14  3:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-14  2:45 Liao Chen
2024-08-14  3:22 ` Guenter Roeck [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0f0971ca-09dd-4c51-944a-1f05e0a72a32@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=jdelvare@suse.com \
    --cc=liaochen4@huawei.com \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tharvey@gateworks.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®