From: Nicolas Chauvet Date: Tue, 10 May 2016 10:26:42 +0000 (+0200) Subject: rtc: tps6586x: rename so module can be autoloaded X-Git-Tag: v4.14-rc1~3177^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b9ba1eb0336877b9b83556fd30d2becda110fd8c;p=platform%2Fkernel%2Flinux-rpi.git rtc: tps6586x: rename so module can be autoloaded This module is loaded by the related mfd driver which has the needed MODULE_DEVICE_TABLE(i2c,...). This patch fix the modalias when the rtc driver is built as a module, so the right name is used. Everything operates correctly when this module is builtin. Fixes: esdc59ed3865 ("rtc: add RTC driver for TPS6586x") Signed-off-by: Nicolas Chauvet Signed-off-by: Alexandre Belloni --- diff --git a/drivers/rtc/rtc-tps6586x.c b/drivers/rtc/rtc-tps6586x.c index e404faa..a3418a8 100644 --- a/drivers/rtc/rtc-tps6586x.c +++ b/drivers/rtc/rtc-tps6586x.c @@ -344,7 +344,7 @@ static struct platform_driver tps6586x_rtc_driver = { }; module_platform_driver(tps6586x_rtc_driver); -MODULE_ALIAS("platform:rtc-tps6586x"); +MODULE_ALIAS("platform:tps6586x-rtc"); MODULE_DESCRIPTION("TI TPS6586x RTC driver"); MODULE_AUTHOR("Laxman dewangan "); MODULE_LICENSE("GPL v2");