Re: [PATCH] i3c: master: adi: add OF module alias for autoloading

Frank Li <[email protected]> Wed, 15 Jul 2026 12:56:58 -0400
Newsgroups org.infradead.lists.linux-i3c,org.kernel.vger.linux-kernel
Message-ID <ale72nOwPyDeAgho@lizhi-Precision-Tower-5810>
On Wed, Jul 15, 2026 at 09:29:49AM +0800, Can Peng wrote:
> The Analog Devices I3C master driver can be built as a module and uses
> adi_i3c_master_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: a79ac2cdc91d ("i3c: master: Add driver for Analog Devices I3C Controller IP")
> Signed-off-by: Can Peng <[email protected]>
> ---

Reviewed-by: Frank Li <[email protected]>

>  drivers/i3c/master/adi-i3c-master.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/i3c/master/adi-i3c-master.c b/drivers/i3c/master/adi-i3c-master.c
> index e29aac286957..fb4cfc9026cc 100644
> --- a/drivers/i3c/master/adi-i3c-master.c
> +++ b/drivers/i3c/master/adi-i3c-master.c
> @@ -929,6 +929,7 @@ static const struct of_device_id adi_i3c_master_of_match[] = {
>  	{ .compatible = "adi,i3c-master-v1" },
>  	{}
>  };
> +MODULE_DEVICE_TABLE(of, adi_i3c_master_of_match);
>
>  static int adi_i3c_master_probe(struct platform_device *pdev)
>  {
> --
> 2.53.0
>

-- 
linux-i3c mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-i3c