rtc: tegra: Drop MODULE_ALIAS
authorDmitry Osipenko <digetx@gmail.com>
Wed, 5 Jun 2019 12:26:13 +0000 (15:26 +0300)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 7 Jun 2019 12:09:18 +0000 (14:09 +0200)
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>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-tegra.c

index 8bbaea24926ed08b1b7204e2fe156b6bcc5535f8..8fa1b3febf69d42ce76efa50859c67aea8f77290 100644 (file)
@@ -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");