lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAMRc=McN_unXqJyu98=qAjMkp=GdqO7dXtTfO-HmrzDR18Y4Cw@mail.gmail.com>
Date: Fri, 12 Apr 2024 21:31:16 +0200
From: Bartosz Golaszewski <brgl@...ev.pl>
To: Krzysztof Kozlowski <krzk@...nel.org>
Cc: Linus Walleij <linus.walleij@...aro.org>, Vladimir Zapolskiy <vz@...ia.com>, linux-gpio@...r.kernel.org, 
	linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] gpio: lpc32xx: fix module autoloading

On Wed, Apr 10, 2024 at 7:03 PM Krzysztof Kozlowski <krzk@...nel.org> 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@...nel.org>
> ---
>  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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ