Re: [PATCH] gpio: lpc32xx: fix module autoloading

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 10, 2024 at 7:03 PM Krzysztof Kozlowski <krzk@xxxxxxxxxx> wrote:
>
> Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded
> based on the alias from of_device_id table.
>
> Signed-off-by: Krzysztof Kozlowski <krzk@xxxxxxxxxx>
> ---
>  drivers/gpio/gpio-lpc32xx.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpio/gpio-lpc32xx.c b/drivers/gpio/gpio-lpc32xx.c
> index 5ef8af824980..c097e310c9e8 100644
> --- a/drivers/gpio/gpio-lpc32xx.c
> +++ b/drivers/gpio/gpio-lpc32xx.c
> @@ -529,6 +529,7 @@ static const struct of_device_id lpc32xx_gpio_of_match[] = {
>         { .compatible = "nxp,lpc3220-gpio", },
>         { },
>  };
> +MODULE_DEVICE_TABLE(of, lpc32xx_gpio_of_match);
>
>  static struct platform_driver lpc32xx_gpio_driver = {
>         .driver         = {
> --
> 2.34.1
>

Queued for fixes, thanks!

Bart





[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux