diff mbox series

[v1] rtc: tegra: Drop MODULE_ALIAS

Message ID 20190605122613.21303-1-digetx@gmail.com
State Deferred
Headers show
Series [v1] rtc: tegra: Drop MODULE_ALIAS | expand

Commit Message

Dmitry Osipenko June 5, 2019, 12:26 p.m. UTC
RTC driver was converted to OF driver long time ago. The MODULE_ALIAS
macro has no effect for the OF drivers since the alias is overridden by
the drivers core to follow the OF naming convention of the driver's alias,
which is based on the device-tree matching name.

$ cat /sys/devices/soc0/7000e000.rtc/modalias
of:NrtcT(null)Cnvidia,tegra20-rtc

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
---
 drivers/rtc/rtc-tegra.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Thierry Reding June 5, 2019, 12:33 p.m. UTC | #1
On Wed, Jun 05, 2019 at 03:26:13PM +0300, Dmitry Osipenko wrote:
> RTC driver was converted to OF driver long time ago. The MODULE_ALIAS
> macro has no effect for the OF drivers since the alias is overridden by
> the drivers core to follow the OF naming convention of the driver's alias,
> which is based on the device-tree matching name.
> 
> $ cat /sys/devices/soc0/7000e000.rtc/modalias
> of:NrtcT(null)Cnvidia,tegra20-rtc
> 
> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
> ---
>  drivers/rtc/rtc-tegra.c | 1 -
>  1 file changed, 1 deletion(-)

Acked-by: Thierry Reding <treding@nvidia.com>
Dmitry Osipenko June 5, 2019, 12:43 p.m. UTC | #2
05.06.2019 15:33, Thierry Reding пишет:
> On Wed, Jun 05, 2019 at 03:26:13PM +0300, Dmitry Osipenko wrote:
>> RTC driver was converted to OF driver long time ago. The MODULE_ALIAS
>> macro has no effect for the OF drivers since the alias is overridden by
>> the drivers core to follow the OF naming convention of the driver's alias,
>> which is based on the device-tree matching name.
>>
>> $ cat /sys/devices/soc0/7000e000.rtc/modalias
>> of:NrtcT(null)Cnvidia,tegra20-rtc
>>
>> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
>> ---
>>  drivers/rtc/rtc-tegra.c | 1 -
>>  1 file changed, 1 deletion(-)
> 
> Acked-by: Thierry Reding <treding@nvidia.com>
> 

Thanks!
Alexandre Belloni June 7, 2019, 12:11 p.m. UTC | #3
On 05/06/2019 15:26:13+0300, Dmitry Osipenko wrote:
> RTC driver was converted to OF driver long time ago. The MODULE_ALIAS
> macro has no effect for the OF drivers since the alias is overridden by
> the drivers core to follow the OF naming convention of the driver's alias,
> which is based on the device-tree matching name.
> 
> $ cat /sys/devices/soc0/7000e000.rtc/modalias
> of:NrtcT(null)Cnvidia,tegra20-rtc
> 
> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
> ---
>  drivers/rtc/rtc-tegra.c | 1 -
>  1 file changed, 1 deletion(-)
> 
Applied, thanks.
diff mbox series

Patch

diff --git a/drivers/rtc/rtc-tegra.c b/drivers/rtc/rtc-tegra.c
index 8bbaea24926e..8fa1b3febf69 100644
--- a/drivers/rtc/rtc-tegra.c
+++ b/drivers/rtc/rtc-tegra.c
@@ -419,5 +419,4 @@  module_platform_driver(tegra_rtc_driver);
 
 MODULE_AUTHOR("Jon Mayo <jmayo@nvidia.com>");
 MODULE_DESCRIPTION("driver for Tegra internal RTC");
-MODULE_ALIAS("platform:tegra_rtc");
 MODULE_LICENSE("GPL");