mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Srinivas Kandagatla <srini@kernel.org>
To: Can Peng <pengcan@kylinos.cn>,
	srini@kernel.org, error27@gmail.com,
	ciprianmarian.costea@nxp.com
Cc: larisa.grigore@nxp.com, ghennadi.procopciuc@nxp.com,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] nvmem: s32g-ocotp: add OF module alias for autoloading
Date: Thu, 16 Jul 2026 22:47:19 +0100	[thread overview]
Message-ID: <4dec6246-40af-452b-9a14-c9e10c5efb0d@kernel.org> (raw)
In-Reply-To: <20260715011047.177743-1-pengcan@kylinos.cn>



On 7/15/26 2:10 AM, Can Peng wrote:
> The S32G OCOTP platform driver can be built as a module and uses
> ocotp_of_match as its OF match table, but the table is not exported for
> module alias generation.
> 
> Add the MODULE_DEVICE_TABLE(of, ...) entry so modpost can generate OF
> module aliases for OF based module autoloading.
> 
> Fixes: 5a356145e968 ("nvmem: s32g-ocotp: Add driver for S32G OCOTP")

CC Stable is missing

--srini
> Signed-off-by: Can Peng <pengcan@kylinos.cn>
> ---
>  drivers/nvmem/s32g-ocotp-nvmem.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/nvmem/s32g-ocotp-nvmem.c b/drivers/nvmem/s32g-ocotp-nvmem.c
> index 119871ab3a94..0b57d1b36f29 100644
> --- a/drivers/nvmem/s32g-ocotp-nvmem.c
> +++ b/drivers/nvmem/s32g-ocotp-nvmem.c
> @@ -60,6 +60,7 @@ static const struct of_device_id ocotp_of_match[] = {
>  	{ .compatible = "nxp,s32g2-ocotp" },
>  	{ /* sentinel */ }
>  };
> +MODULE_DEVICE_TABLE(of, ocotp_of_match);
>  
>  static int s32g_ocotp_probe(struct platform_device *pdev)
>  {


      reply	other threads:[~2026-07-16 21:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-15  1:10 Can Peng
2026-07-16 21:47 ` Srinivas Kandagatla [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=4dec6246-40af-452b-9a14-c9e10c5efb0d@kernel.org \
    --to=srini@kernel.org \
    --cc=ciprianmarian.costea@nxp.com \
    --cc=error27@gmail.com \
    --cc=ghennadi.procopciuc@nxp.com \
    --cc=larisa.grigore@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pengcan@kylinos.cn \
    /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

Powered by JetHome