diff mbox series

[-next] pinctrl: pinctrl-zynq: fix module autoloading

Message ID 20240814030155.3876069-1-liaochen4@huawei.com (mailing list archive)
State New, archived
Headers show
Series [-next] pinctrl: pinctrl-zynq: fix module autoloading | expand

Commit Message

Liao Chen Aug. 14, 2024, 3:01 a.m. UTC
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>
---
 drivers/pinctrl/pinctrl-zynq.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Liao Chen Aug. 19, 2024, 12:22 p.m. UTC | #1
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@huawei.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
Linus Walleij Aug. 24, 2024, 2:31 p.m. UTC | #2
On Wed, Aug 14, 2024 at 5:09 AM Liao Chen <liaochen4@huawei.com> 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>

Patch applied!

Yours,
Linus Walleij
diff mbox series

Patch

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