linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Lorenzo Bianconi <lorenzo@kernel.org>
To: Liao Chen <liaochen4@huawei.com>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org, chris.snook@gmail.com,
	davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
	pabeni@redhat.com, nbd@nbd.name, sean.wang@mediatek.com,
	Mark-MC.Lee@mediatek.com, matthias.bgg@gmail.com,
	angelogioacchino.delregno@collabora.com
Subject: Re: [PATCH -next 3/3] net: airoha: fix module autoloading
Date: Mon, 26 Aug 2024 12:40:44 +0200	[thread overview]
Message-ID: <ZsxbrCWR7VpElXoP@lore-desk> (raw)
In-Reply-To: <20240826091858.369910-4-liaochen4@huawei.com>

[-- Attachment #1: Type: text/plain, Size: 882 bytes --]

> 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>

Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>

> ---
>  drivers/net/ethernet/mediatek/airoha_eth.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/net/ethernet/mediatek/airoha_eth.c b/drivers/net/ethernet/mediatek/airoha_eth.c
> index 1c5b85a86df1..a80c1fae5c2d 100644
> --- a/drivers/net/ethernet/mediatek/airoha_eth.c
> +++ b/drivers/net/ethernet/mediatek/airoha_eth.c
> @@ -2715,6 +2715,7 @@ static const struct of_device_id of_airoha_match[] = {
>  	{ .compatible = "airoha,en7581-eth" },
>  	{ /* sentinel */ }
>  };
> +MODULE_DEVICE_TABLE(of, of_airoha_match);
>  
>  static struct platform_driver airoha_driver = {
>  	.probe = airoha_probe,
> -- 
> 2.34.1
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2024-08-26 10:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-26  9:18 [PATCH -next 0/3] net: fix module autoloading Liao Chen
2024-08-26  9:18 ` [PATCH -next 1/3] net: dm9051: " Liao Chen
2024-08-26  9:18 ` [PATCH -next 2/3] net: ag71xx: " Liao Chen
2024-08-26  9:18 ` [PATCH -next 3/3] net: airoha: " Liao Chen
2024-08-26 10:40   ` Lorenzo Bianconi [this message]
2024-08-27 21:30 ` [PATCH -next 0/3] net: " patchwork-bot+netdevbpf

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=ZsxbrCWR7VpElXoP@lore-desk \
    --to=lorenzo@kernel.org \
    --cc=Mark-MC.Lee@mediatek.com \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=chris.snook@gmail.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=liaochen4@huawei.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=matthias.bgg@gmail.com \
    --cc=nbd@nbd.name \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=sean.wang@mediatek.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;
as well as URLs for NNTP newsgroup(s).