2020-05-05 08:47:12

by Yousaf Kaukab

[permalink] [raw]
Subject: [PATCH] gpio: tegra186: export MODULE_DEVICE_TABLE

Export MODULE_DEVICE_TABLE since the driver can be built as a module.

Signed-off-by: Mian Yousaf Kaukab <[email protected]>
---
drivers/gpio/gpio-tegra186.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/gpio/gpio-tegra186.c b/drivers/gpio/gpio-tegra186.c
index 79b553dc39a3..178e9128ded0 100644
--- a/drivers/gpio/gpio-tegra186.c
+++ b/drivers/gpio/gpio-tegra186.c
@@ -894,6 +894,7 @@ static const struct of_device_id tegra186_gpio_of_match[] = {
/* sentinel */
}
};
+MODULE_DEVICE_TABLE(of, tegra186_gpio_of_match);

static struct platform_driver tegra186_gpio_driver = {
.driver = {
--
2.25.0


2020-05-05 16:23:27

by Bartosz Golaszewski

[permalink] [raw]
Subject: Re: [PATCH] gpio: tegra186: export MODULE_DEVICE_TABLE

wt., 5 maj 2020 o 10:45 Mian Yousaf Kaukab <[email protected]> napisaƂ(a):
>
> Export MODULE_DEVICE_TABLE since the driver can be built as a module.
>
> Signed-off-by: Mian Yousaf Kaukab <[email protected]>
> ---
> drivers/gpio/gpio-tegra186.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpio/gpio-tegra186.c b/drivers/gpio/gpio-tegra186.c
> index 79b553dc39a3..178e9128ded0 100644
> --- a/drivers/gpio/gpio-tegra186.c
> +++ b/drivers/gpio/gpio-tegra186.c
> @@ -894,6 +894,7 @@ static const struct of_device_id tegra186_gpio_of_match[] = {
> /* sentinel */
> }
> };
> +MODULE_DEVICE_TABLE(of, tegra186_gpio_of_match);
>
> static struct platform_driver tegra186_gpio_driver = {
> .driver = {
> --
> 2.25.0
>

Patch applied, thanks!

Bart