summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-rs5c348.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>2016-03-31 09:07:26 -0400
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2016-05-20 06:33:51 -0400
commitfa5691131a87a36ee2d535aa3e8886e4e4f1e9f3 (patch)
tree45788ab56509d83cb4a505fe7f21f4271d984e87 /drivers/rtc/rtc-rs5c348.c
parentdf2d741f0e00669b94d675564f92949752a5d241 (diff)
rtc: remove useless DRV_VERSION
Many drivers are defining a DRV_VERSION. This is often only used for MODULE_VERSION and sometimes to print an info message at probe time. This is kind of pointless as they are all versionned with the kernel anyway. Also the core will print a message when a new rtc is found. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/rtc-rs5c348.c')
-rw-r--r--drivers/rtc/rtc-rs5c348.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/rtc/rtc-rs5c348.c b/drivers/rtc/rtc-rs5c348.c
index 1162fecab8cf..9a306983aaba 100644
--- a/drivers/rtc/rtc-rs5c348.c
+++ b/drivers/rtc/rtc-rs5c348.c
@@ -25,8 +25,6 @@
25#include <linux/spi/spi.h> 25#include <linux/spi/spi.h>
26#include <linux/module.h> 26#include <linux/module.h>
27 27
28#define DRV_VERSION "0.2"
29
30#define RS5C348_REG_SECS 0 28#define RS5C348_REG_SECS 0
31#define RS5C348_REG_MINS 1 29#define RS5C348_REG_MINS 1
32#define RS5C348_REG_HOURS 2 30#define RS5C348_REG_HOURS 2
@@ -171,7 +169,6 @@ static int rs5c348_probe(struct spi_device *spi)
171 goto kfree_exit; 169 goto kfree_exit;
172 } 170 }
173 171
174 dev_info(&spi->dev, "chip found, driver version " DRV_VERSION "\n");
175 dev_info(&spi->dev, "spiclk %u KHz.\n", 172 dev_info(&spi->dev, "spiclk %u KHz.\n",
176 (spi->max_speed_hz + 500) / 1000); 173 (spi->max_speed_hz + 500) / 1000);
177 174
@@ -230,5 +227,4 @@ module_spi_driver(rs5c348_driver);
230MODULE_AUTHOR("Atsushi Nemoto <anemo@mba.ocn.ne.jp>"); 227MODULE_AUTHOR("Atsushi Nemoto <anemo@mba.ocn.ne.jp>");
231MODULE_DESCRIPTION("Ricoh RS5C348 RTC driver"); 228MODULE_DESCRIPTION("Ricoh RS5C348 RTC driver");
232MODULE_LICENSE("GPL"); 229MODULE_LICENSE("GPL");
233MODULE_VERSION(DRV_VERSION);
234MODULE_ALIAS("spi:rtc-rs5c348"); 230MODULE_ALIAS("spi:rtc-rs5c348");