diff mbox series

pinctrl: imx93: Add MODULE_DEVICE_TABLE()

Message ID 20220712115154.2348971-1-festevam@denx.de
State New
Headers show
Series pinctrl: imx93: Add MODULE_DEVICE_TABLE() | expand

Commit Message

Fabio Estevam July 12, 2022, 11:51 a.m. UTC
Pass MODULE_DEVICE_TABLE() so that module autoloading can work.

This also aligns with the other i.MX8 pinctrl drivers.

Signed-off-by: Fabio Estevam <festevam@denx.de>
---
 drivers/pinctrl/freescale/pinctrl-imx93.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Jacky Bai July 13, 2022, 7:03 a.m. UTC | #1
> Subject: [PATCH] pinctrl: imx93: Add MODULE_DEVICE_TABLE()
> 
> Pass MODULE_DEVICE_TABLE() so that module autoloading can work.
> 
> This also aligns with the other i.MX8 pinctrl drivers.
> 

Reviewed-by: Jacky Bai <ping.bai@nxp.com>

BR

> Signed-off-by: Fabio Estevam <festevam@denx.de>
> ---
>  drivers/pinctrl/freescale/pinctrl-imx93.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/pinctrl/freescale/pinctrl-imx93.c
> b/drivers/pinctrl/freescale/pinctrl-imx93.c
> index 417e41b37a6f..91b3ee1e6fa9 100644
> --- a/drivers/pinctrl/freescale/pinctrl-imx93.c
> +++ b/drivers/pinctrl/freescale/pinctrl-imx93.c
> @@ -247,6 +247,7 @@ static const struct of_device_id
> imx93_pinctrl_of_match[] = {
>  	{ .compatible = "fsl,imx93-iomuxc", },
>  	{ /* sentinel */ }
>  };
> +MODULE_DEVICE_TABLE(of, imx93_pinctrl_of_match);
> 
>  static int imx93_pinctrl_probe(struct platform_device *pdev)  {
> --
> 2.25.1
Linus Walleij July 18, 2022, 9:42 a.m. UTC | #2
On Tue, Jul 12, 2022 at 1:52 PM Fabio Estevam <festevam@denx.de> wrote:

> Pass MODULE_DEVICE_TABLE() so that module autoloading can work.
>
> This also aligns with the other i.MX8 pinctrl drivers.
>
> Signed-off-by: Fabio Estevam <festevam@denx.de>

Patch applied!

Yours,
Linus Walleij
diff mbox series

Patch

diff --git a/drivers/pinctrl/freescale/pinctrl-imx93.c b/drivers/pinctrl/freescale/pinctrl-imx93.c
index 417e41b37a6f..91b3ee1e6fa9 100644
--- a/drivers/pinctrl/freescale/pinctrl-imx93.c
+++ b/drivers/pinctrl/freescale/pinctrl-imx93.c
@@ -247,6 +247,7 @@  static const struct of_device_id imx93_pinctrl_of_match[] = {
 	{ .compatible = "fsl,imx93-iomuxc", },
 	{ /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, imx93_pinctrl_of_match);
 
 static int imx93_pinctrl_probe(struct platform_device *pdev)
 {