2020-12-08 13:39:21

by Marek Szyprowski

[permalink] [raw]
Subject: [PATCH] extcon: max77693: Fix modalias string

The platform device driver name is "max77693-muic", so advertise it
properly in the modalias string. This fixes automated module loading when
this driver is compiled as a module.

Fixes: db1b9037424b ("extcon: MAX77693: Add extcon-max77693 driver to support Maxim MAX77693 MUIC device")
Signed-off-by: Marek Szyprowski <[email protected]>
---
drivers/extcon/extcon-max77693.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/extcon/extcon-max77693.c b/drivers/extcon/extcon-max77693.c
index 4a410fd2ea9a..92af97e00828 100644
--- a/drivers/extcon/extcon-max77693.c
+++ b/drivers/extcon/extcon-max77693.c
@@ -1277,4 +1277,4 @@ module_platform_driver(max77693_muic_driver);
MODULE_DESCRIPTION("Maxim MAX77693 Extcon driver");
MODULE_AUTHOR("Chanwoo Choi <[email protected]>");
MODULE_LICENSE("GPL");
-MODULE_ALIAS("platform:extcon-max77693");
+MODULE_ALIAS("platform:max77693-muic");
--
2.17.1


2020-12-09 01:58:46

by Chanwoo Choi

[permalink] [raw]
Subject: Re: [PATCH] extcon: max77693: Fix modalias string

On 12/8/20 10:36 PM, Marek Szyprowski wrote:
> The platform device driver name is "max77693-muic", so advertise it
> properly in the modalias string. This fixes automated module loading when
> this driver is compiled as a module.
>
> Fixes: db1b9037424b ("extcon: MAX77693: Add extcon-max77693 driver to support Maxim MAX77693 MUIC device")
> Signed-off-by: Marek Szyprowski <[email protected]>
> ---
> drivers/extcon/extcon-max77693.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/extcon/extcon-max77693.c b/drivers/extcon/extcon-max77693.c
> index 4a410fd2ea9a..92af97e00828 100644
> --- a/drivers/extcon/extcon-max77693.c
> +++ b/drivers/extcon/extcon-max77693.c
> @@ -1277,4 +1277,4 @@ module_platform_driver(max77693_muic_driver);
> MODULE_DESCRIPTION("Maxim MAX77693 Extcon driver");
> MODULE_AUTHOR("Chanwoo Choi <[email protected]>");
> MODULE_LICENSE("GPL");
> -MODULE_ALIAS("platform:extcon-max77693");
> +MODULE_ALIAS("platform:max77693-muic");
>

Applied it. Thanks.

--
Best Regards,
Chanwoo Choi
Samsung Electronics