pinctrl: freescale: imx8ulp: fix module autoloading
authorKrzysztof Kozlowski <krzk@kernel.org>
Thu, 11 Apr 2024 06:46:10 +0000 (08:46 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 17 Apr 2024 08:43:50 +0000 (10:43 +0200)
Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded
based on the alias from of_device_id table.  Pin controllers are
considered core components, so usually they are built-in, however these
can be built and used as modules on some generic kernel.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Message-ID: <20240411064614.7409-1-krzk@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/freescale/pinctrl-imx8ulp.c

index 2e86ca9fc7ac1756c673051c3a2a42871cd329fd..5632c72851479f88628def3081ecf4c44015996a 100644 (file)
@@ -252,6 +252,7 @@ static const struct of_device_id imx8ulp_pinctrl_of_match[] = {
        { .compatible = "fsl,imx8ulp-iomuxc1", },
        { /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, imx8ulp_pinctrl_of_match);
 
 static int imx8ulp_pinctrl_probe(struct platform_device *pdev)
 {