diff mbox series

[1/2] gpio: max77620: drop unneeded MODULE_ALIAS

Message ID 20210916164641.135008-1-krzysztof.kozlowski@canonical.com
State Accepted
Commit 3846a3607738ccbc763afe7af75b5bd25009b037
Headers show
Series [1/2] gpio: max77620: drop unneeded MODULE_ALIAS | expand

Commit Message

Krzysztof Kozlowski Sept. 16, 2021, 4:46 p.m. UTC
The MODULE_DEVICE_TABLE already creates proper alias for platform
driver.  Having another MODULE_ALIAS causes the alias to be duplicated.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 drivers/gpio/gpio-max77620.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Bartosz Golaszewski Sept. 22, 2021, 10:12 a.m. UTC | #1
On Thu, Sep 16, 2021 at 6:46 PM Krzysztof Kozlowski
<krzysztof.kozlowski@canonical.com> wrote:
>

> The MODULE_DEVICE_TABLE already creates proper alias for platform

> driver.  Having another MODULE_ALIAS causes the alias to be duplicated.

>

> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>

> ---

>  drivers/gpio/gpio-max77620.c | 1 -

>  1 file changed, 1 deletion(-)

>

> diff --git a/drivers/gpio/gpio-max77620.c b/drivers/gpio/gpio-max77620.c

> index 82b3a913005d..ebf9dea6546b 100644

> --- a/drivers/gpio/gpio-max77620.c

> +++ b/drivers/gpio/gpio-max77620.c

> @@ -365,5 +365,4 @@ module_platform_driver(max77620_gpio_driver);

>  MODULE_DESCRIPTION("GPIO interface for MAX77620 and MAX20024 PMIC");

>  MODULE_AUTHOR("Laxman Dewangan <ldewangan@nvidia.com>");

>  MODULE_AUTHOR("Chaitanya Bandi <bandik@nvidia.com>");

> -MODULE_ALIAS("platform:max77620-gpio");

>  MODULE_LICENSE("GPL v2");

> --

> 2.30.2

>


Applied, thanks!

Bart
Bartosz Golaszewski Sept. 22, 2021, 10:13 a.m. UTC | #2
On Thu, Sep 16, 2021 at 6:46 PM Krzysztof Kozlowski
<krzysztof.kozlowski@canonical.com> wrote:
>

> The MODULE_DEVICE_TABLE already creates proper alias for platform

> driver.  Having another MODULE_ALIAS causes the alias to be duplicated.

>

> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>

> ---

>  drivers/gpio/gpio-tps65218.c | 1 -

>  1 file changed, 1 deletion(-)

>

> diff --git a/drivers/gpio/gpio-tps65218.c b/drivers/gpio/gpio-tps65218.c

> index 3517debe2b0b..912382be48e1 100644

> --- a/drivers/gpio/gpio-tps65218.c

> +++ b/drivers/gpio/gpio-tps65218.c

> @@ -230,4 +230,3 @@ module_platform_driver(tps65218_gpio_driver);

>  MODULE_AUTHOR("Nicolas Saenz Julienne <nicolassaenzj@gmail.com>");

>  MODULE_DESCRIPTION("GPO interface for TPS65218 PMICs");

>  MODULE_LICENSE("GPL v2");

> -MODULE_ALIAS("platform:tps65218-gpio");

> --

> 2.30.2

>


Applied, thanks!

Bart
diff mbox series

Patch

diff --git a/drivers/gpio/gpio-max77620.c b/drivers/gpio/gpio-max77620.c
index 82b3a913005d..ebf9dea6546b 100644
--- a/drivers/gpio/gpio-max77620.c
+++ b/drivers/gpio/gpio-max77620.c
@@ -365,5 +365,4 @@  module_platform_driver(max77620_gpio_driver);
 MODULE_DESCRIPTION("GPIO interface for MAX77620 and MAX20024 PMIC");
 MODULE_AUTHOR("Laxman Dewangan <ldewangan@nvidia.com>");
 MODULE_AUTHOR("Chaitanya Bandi <bandik@nvidia.com>");
-MODULE_ALIAS("platform:max77620-gpio");
 MODULE_LICENSE("GPL v2");