2018-03-26 10:03:41

by Sean Wang

[permalink] [raw]
Subject: [PATCH] pwm: mediatek: remove redundant MODULE_ALIAS entries

From: Sean Wang <[email protected]>

MODULE_ALIAS exports information to allow the module to be auto-loaded at
boot for the drivers registered using legacy platform registration.

However, currently the driver is always used by DT-only platform,
MODULE_ALIAS is redundant and should be removed properly.

Signed-off-by: Sean Wang <[email protected]>
---
drivers/pwm/pwm-mediatek.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/pwm/pwm-mediatek.c b/drivers/pwm/pwm-mediatek.c
index 98b0a93..328c1247 100644
--- a/drivers/pwm/pwm-mediatek.c
+++ b/drivers/pwm/pwm-mediatek.c
@@ -305,5 +305,4 @@ static struct platform_driver mtk_pwm_driver = {
module_platform_driver(mtk_pwm_driver);

MODULE_AUTHOR("John Crispin <[email protected]>");
-MODULE_ALIAS("platform:mtk-pwm");
MODULE_LICENSE("GPL");
--
2.7.4



2018-03-27 22:35:01

by Thierry Reding

[permalink] [raw]
Subject: Re: [PATCH] pwm: mediatek: remove redundant MODULE_ALIAS entries

On Mon, Mar 26, 2018 at 06:02:01PM +0800, [email protected] wrote:
> From: Sean Wang <[email protected]>
>
> MODULE_ALIAS exports information to allow the module to be auto-loaded at
> boot for the drivers registered using legacy platform registration.
>
> However, currently the driver is always used by DT-only platform,
> MODULE_ALIAS is redundant and should be removed properly.
>
> Signed-off-by: Sean Wang <[email protected]>
> ---
> drivers/pwm/pwm-mediatek.c | 1 -
> 1 file changed, 1 deletion(-)

Applied, thanks.

Thierry


Attachments:
(No filename) (569.00 B)
signature.asc (849.00 B)
Download all attachments