[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4ffc2b2c-7d68-4a53-945f-e77c207445c9@huawei.com>
Date: Mon, 19 Aug 2024 20:22:09 +0800
From: "liaochen (A)" <liaochen4@...wei.com>
To: <linux-arm-kernel@...ts.infradead.org>, <linux-gpio@...r.kernel.org>
CC: <linux-kernel@...r.kernel.org>, <linus.walleij@...aro.org>,
<michal.simek@....com>
Subject: Re: [PATCH -next] pinctrl: pinctrl-zynq: fix module autoloading
On 2024/8/14 11:01, 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>
> ---
> drivers/pinctrl/pinctrl-zynq.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/pinctrl/pinctrl-zynq.c b/drivers/pinctrl/pinctrl-zynq.c
> index 0e8de27d0de8..caa8a2ca3e68 100644
> --- a/drivers/pinctrl/pinctrl-zynq.c
> +++ b/drivers/pinctrl/pinctrl-zynq.c
> @@ -1202,6 +1202,7 @@ static const struct of_device_id zynq_pinctrl_of_match[] = {
> { .compatible = "xlnx,pinctrl-zynq" },
> { }
> };
> +MODULE_DEVICE_TABLE(of, zynq_pinctrl_of_match);
>
> static struct platform_driver zynq_pinctrl_driver = {
> .driver = {
Gentle ping
Thanks,
Chen
Powered by blists - more mailing lists