Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -89
-3
drivers/rtc/rtc-ds1216.c
··· 11 11 #include <linux/bcd.h> 12 12 #include <linux/slab.h> 13 13 14 - #define DRV_VERSION "0.2" 15 - 16 14 struct ds1216_regs { 17 15 u8 tsec; 18 16 u8 sec; ··· 174 176 MODULE_AUTHOR("Thomas Bogendoerfer <tsbogend@alpha.franken.de>"); 175 177 MODULE_DESCRIPTION("DS1216 RTC driver"); 176 178 MODULE_LICENSE("GPL"); 177 - MODULE_VERSION(DRV_VERSION); 178 179 MODULE_ALIAS("platform:rtc-ds1216");
-3
drivers/rtc/rtc-ds1286.c
··· 20 20 #include <linux/io.h> 21 21 #include <linux/slab.h> 22 22 23 - #define DRV_VERSION "1.0" 24 - 25 23 struct ds1286_priv { 26 24 struct rtc_device *rtc; 27 25 u32 __iomem *rtcregs; ··· 361 363 MODULE_AUTHOR("Thomas Bogendoerfer <tsbogend@alpha.franken.de>"); 362 364 MODULE_DESCRIPTION("DS1286 RTC driver"); 363 365 MODULE_LICENSE("GPL"); 364 - MODULE_VERSION(DRV_VERSION); 365 366 MODULE_ALIAS("platform:rtc-ds1286");
-2
drivers/rtc/rtc-ds1302.c
··· 19 19 #include <linux/spi/spi.h> 20 20 21 21 #define DRV_NAME "rtc-ds1302" 22 - #define DRV_VERSION "1.0.0" 23 22 24 23 #define RTC_CMD_READ 0x81 /* Read command */ 25 24 #define RTC_CMD_WRITE 0x80 /* Write command */ ··· 215 216 module_spi_driver(ds1302_driver); 216 217 217 218 MODULE_DESCRIPTION("Dallas DS1302 RTC driver"); 218 - MODULE_VERSION(DRV_VERSION); 219 219 MODULE_AUTHOR("Paul Mundt, David McCullough"); 220 220 MODULE_LICENSE("GPL v2");
-2
drivers/rtc/rtc-ds1343.c
··· 24 24 #include <linux/pm_wakeirq.h> 25 25 #include <linux/slab.h> 26 26 27 - #define DS1343_DRV_VERSION "01.00" 28 27 #define DALLAS_MAXIM_DS1343 0 29 28 #define DALLAS_MAXIM_DS1344 1 30 29 ··· 746 747 MODULE_AUTHOR("Raghavendra Chandra Ganiga <ravi23ganiga@gmail.com>," 747 748 "Ankur Srivastava <sankurece@gmail.com>"); 748 749 MODULE_LICENSE("GPL v2"); 749 - MODULE_VERSION(DS1343_DRV_VERSION);
-3
drivers/rtc/rtc-ds1511.c
··· 25 25 #include <linux/io.h> 26 26 #include <linux/module.h> 27 27 28 - #define DRV_VERSION "0.6" 29 - 30 28 enum ds1511reg { 31 29 DS1511_SEC = 0x0, 32 30 DS1511_MIN = 0x1, ··· 535 537 MODULE_AUTHOR("Andrew Sharp <andy.sharp@lsi.com>"); 536 538 MODULE_DESCRIPTION("Dallas DS1511 RTC driver"); 537 539 MODULE_LICENSE("GPL"); 538 - MODULE_VERSION(DRV_VERSION);
-3
drivers/rtc/rtc-ds1553.c
··· 20 20 #include <linux/io.h> 21 21 #include <linux/module.h> 22 22 23 - #define DRV_VERSION "0.3" 24 - 25 23 #define RTC_REG_SIZE 0x2000 26 24 #define RTC_OFFSET 0x1ff0 27 25 ··· 357 359 MODULE_AUTHOR("Atsushi Nemoto <anemo@mba.ocn.ne.jp>"); 358 360 MODULE_DESCRIPTION("Dallas DS1553 RTC driver"); 359 361 MODULE_LICENSE("GPL"); 360 - MODULE_VERSION(DRV_VERSION);
-5
drivers/rtc/rtc-ds1672.c
··· 13 13 #include <linux/rtc.h> 14 14 #include <linux/module.h> 15 15 16 - #define DRV_VERSION "0.4" 17 - 18 16 /* Registers */ 19 17 20 18 #define DS1672_REG_CNT_BASE 0 ··· 163 165 if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) 164 166 return -ENODEV; 165 167 166 - dev_info(&client->dev, "chip found, driver version " DRV_VERSION "\n"); 167 - 168 168 rtc = devm_rtc_device_register(&client->dev, ds1672_driver.driver.name, 169 169 &ds1672_rtc_ops, THIS_MODULE); 170 170 ··· 209 213 MODULE_AUTHOR("Alessandro Zummo <a.zummo@towertech.it>"); 210 214 MODULE_DESCRIPTION("Dallas/Maxim DS1672 timekeeper driver"); 211 215 MODULE_LICENSE("GPL"); 212 - MODULE_VERSION(DRV_VERSION);
-3
drivers/rtc/rtc-ds1685.c
··· 32 32 #include <linux/proc_fs.h> 33 33 #endif 34 34 35 - #define DRV_VERSION "0.42.0" 36 - 37 35 38 36 /* ----------------------------------------------------------------------- */ 39 37 /* Standard read/write functions if platform does not provide overrides */ ··· 2222 2224 MODULE_AUTHOR("Matthias Fuchs <matthias.fuchs@esd-electronics.com>"); 2223 2225 MODULE_DESCRIPTION("Dallas/Maxim DS1685/DS1687-series RTC driver"); 2224 2226 MODULE_LICENSE("GPL"); 2225 - MODULE_VERSION(DRV_VERSION); 2226 2227 MODULE_ALIAS("platform:rtc-ds1685");
-3
drivers/rtc/rtc-ds1742.c
··· 24 24 #include <linux/io.h> 25 25 #include <linux/module.h> 26 26 27 - #define DRV_VERSION "0.4" 28 - 29 27 #define RTC_SIZE 8 30 28 31 29 #define RTC_CONTROL 0 ··· 237 239 MODULE_AUTHOR("Atsushi Nemoto <anemo@mba.ocn.ne.jp>"); 238 240 MODULE_DESCRIPTION("Dallas DS1742 RTC driver"); 239 241 MODULE_LICENSE("GPL"); 240 - MODULE_VERSION(DRV_VERSION); 241 242 MODULE_ALIAS("platform:rtc-ds1742");
-3
drivers/rtc/rtc-ep93xx.c
··· 28 28 #define EP93XX_RTC_SWCOMP_INT_MASK 0x0000ffff 29 29 #define EP93XX_RTC_SWCOMP_INT_SHIFT 0 30 30 31 - #define DRV_VERSION "0.3" 32 - 33 31 /* 34 32 * struct device dev.platform_data is used to store our private data 35 33 * because struct rtc_device does not have a variable to hold it. ··· 182 184 MODULE_AUTHOR("Alessandro Zummo <a.zummo@towertech.it>"); 183 185 MODULE_DESCRIPTION("EP93XX RTC driver"); 184 186 MODULE_LICENSE("GPL"); 185 - MODULE_VERSION(DRV_VERSION); 186 187 MODULE_ALIAS("platform:ep93xx-rtc");
-1
drivers/rtc/rtc-gemini.c
··· 28 28 #include <linux/module.h> 29 29 30 30 #define DRV_NAME "rtc-gemini" 31 - #define DRV_VERSION "0.2" 32 31 33 32 MODULE_AUTHOR("Hans Ulli Kroll <ulli.kroll@googlemail.com>"); 34 33 MODULE_DESCRIPTION("RTC driver for Gemini SoC");
-5
drivers/rtc/rtc-isl12022.c
··· 20 20 #include <linux/of.h> 21 21 #include <linux/of_device.h> 22 22 23 - #define DRV_VERSION "0.1" 24 - 25 23 /* ISL register offsets */ 26 24 #define ISL12022_REG_SC 0x00 27 25 #define ISL12022_REG_MN 0x01 ··· 256 258 if (!isl12022) 257 259 return -ENOMEM; 258 260 259 - dev_dbg(&client->dev, "chip found, driver version " DRV_VERSION "\n"); 260 - 261 261 i2c_set_clientdata(client, isl12022); 262 262 263 263 isl12022->rtc = devm_rtc_device_register(&client->dev, ··· 295 299 MODULE_AUTHOR("roman.fietze@telemotive.de"); 296 300 MODULE_DESCRIPTION("ISL 12022 RTC driver"); 297 301 MODULE_LICENSE("GPL"); 298 - MODULE_VERSION(DRV_VERSION);
-6
drivers/rtc/rtc-isl1208.c
··· 15 15 #include <linux/bcd.h> 16 16 #include <linux/rtc.h> 17 17 18 - #define DRV_VERSION "0.3" 19 - 20 18 /* Register map */ 21 19 /* rtc section */ 22 20 #define ISL1208_REG_SC 0x00 ··· 630 632 if (isl1208_i2c_validate_client(client) < 0) 631 633 return -ENODEV; 632 634 633 - dev_info(&client->dev, 634 - "chip found, driver version " DRV_VERSION "\n"); 635 - 636 635 if (client->irq > 0) { 637 636 rc = devm_request_threaded_irq(&client->dev, client->irq, NULL, 638 637 isl1208_rtc_interrupt, ··· 701 706 MODULE_AUTHOR("Herbert Valerio Riedel <hvr@gnu.org>"); 702 707 MODULE_DESCRIPTION("Intersil ISL1208 RTC driver"); 703 708 MODULE_LICENSE("GPL"); 704 - MODULE_VERSION(DRV_VERSION);
-3
drivers/rtc/rtc-m48t35.c
··· 22 22 #include <linux/io.h> 23 23 #include <linux/err.h> 24 24 25 - #define DRV_VERSION "1.0" 26 - 27 25 struct m48t35_rtc { 28 26 u8 pad[0x7ff8]; /* starts at 0x7ff8 */ 29 27 u8 control; ··· 188 190 MODULE_AUTHOR("Thomas Bogendoerfer <tsbogend@alpha.franken.de>"); 189 191 MODULE_DESCRIPTION("M48T35 RTC driver"); 190 192 MODULE_LICENSE("GPL"); 191 - MODULE_VERSION(DRV_VERSION); 192 193 MODULE_ALIAS("platform:rtc-m48t35");
-4
drivers/rtc/rtc-m48t86.c
··· 39 39 #define M48T86_REG_B_SET (1 << 7) 40 40 #define M48T86_REG_D_VRT (1 << 7) 41 41 42 - #define DRV_VERSION "0.1" 43 - 44 - 45 42 static int m48t86_rtc_read_time(struct device *dev, struct rtc_time *tm) 46 43 { 47 44 unsigned char reg; ··· 175 178 MODULE_AUTHOR("Alessandro Zummo <a.zummo@towertech.it>"); 176 179 MODULE_DESCRIPTION("M48T86 RTC driver"); 177 180 MODULE_LICENSE("GPL"); 178 - MODULE_VERSION(DRV_VERSION); 179 181 MODULE_ALIAS("platform:rtc-m48t86");
-5
drivers/rtc/rtc-max6900.c
··· 17 17 #include <linux/rtc.h> 18 18 #include <linux/delay.h> 19 19 20 - #define DRV_VERSION "0.2" 21 - 22 20 /* 23 21 * register indices 24 22 */ ··· 216 218 if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) 217 219 return -ENODEV; 218 220 219 - dev_info(&client->dev, "chip found, driver version " DRV_VERSION "\n"); 220 - 221 221 rtc = devm_rtc_device_register(&client->dev, max6900_driver.driver.name, 222 222 &max6900_rtc_ops, THIS_MODULE); 223 223 if (IS_ERR(rtc)) ··· 245 249 MODULE_DESCRIPTION("Maxim MAX6900 RTC driver"); 246 250 MODULE_AUTHOR("Dale Farnsworth <dale@farnsworth.org>"); 247 251 MODULE_LICENSE("GPL"); 248 - MODULE_VERSION(DRV_VERSION);
-4
drivers/rtc/rtc-pcf2123.c
··· 46 46 #include <linux/module.h> 47 47 #include <linux/sysfs.h> 48 48 49 - #define DRV_VERSION "0.6" 50 - 51 49 /* REGISTERS */ 52 50 #define PCF2123_REG_CTRL1 (0x00) /* Control Register 1 */ 53 51 #define PCF2123_REG_CTRL2 (0x01) /* Control Register 2 */ ··· 393 395 } 394 396 } 395 397 396 - dev_info(&spi->dev, "chip found, driver version " DRV_VERSION "\n"); 397 398 dev_info(&spi->dev, "spiclk %u KHz.\n", 398 399 (spi->max_speed_hz + 500) / 1000); 399 400 ··· 471 474 MODULE_AUTHOR("Chris Verges <chrisv@cyberswitching.com>"); 472 475 MODULE_DESCRIPTION("NXP PCF2123 RTC driver"); 473 476 MODULE_LICENSE("GPL"); 474 - MODULE_VERSION(DRV_VERSION);
-5
drivers/rtc/rtc-pcf8563.c
··· 23 23 #include <linux/of.h> 24 24 #include <linux/err.h> 25 25 26 - #define DRV_VERSION "0.4.4" 27 - 28 26 #define PCF8563_REG_ST1 0x00 /* status */ 29 27 #define PCF8563_REG_ST2 0x01 30 28 #define PCF8563_BIT_AIE (1 << 1) ··· 578 580 if (!pcf8563) 579 581 return -ENOMEM; 580 582 581 - dev_info(&client->dev, "chip found, driver version " DRV_VERSION "\n"); 582 - 583 583 i2c_set_clientdata(client, pcf8563); 584 584 pcf8563->client = client; 585 585 device_set_wakeup_capable(&client->dev, 1); ··· 658 662 MODULE_AUTHOR("Alessandro Zummo <a.zummo@towertech.it>"); 659 663 MODULE_DESCRIPTION("Philips PCF8563/Epson RTC8564 RTC driver"); 660 664 MODULE_LICENSE("GPL"); 661 - MODULE_VERSION(DRV_VERSION);
-2
drivers/rtc/rtc-rs5c313.c
··· 50 50 #include <linux/io.h> 51 51 52 52 #define DRV_NAME "rs5c313" 53 - #define DRV_VERSION "1.13" 54 53 55 54 #ifdef CONFIG_SH_LANDISK 56 55 /*****************************************************/ ··· 406 407 module_init(rs5c313_rtc_init); 407 408 module_exit(rs5c313_rtc_exit); 408 409 409 - MODULE_VERSION(DRV_VERSION); 410 410 MODULE_AUTHOR("kogiidena , Nobuhiro Iwamatsu <iwamatsu@nigauri.org>"); 411 411 MODULE_DESCRIPTION("Ricoh RS5C313 RTC device driver"); 412 412 MODULE_LICENSE("GPL");
-4
drivers/rtc/rtc-rs5c348.c
··· 25 25 #include <linux/spi/spi.h> 26 26 #include <linux/module.h> 27 27 28 - #define DRV_VERSION "0.2" 29 - 30 28 #define RS5C348_REG_SECS 0 31 29 #define RS5C348_REG_MINS 1 32 30 #define RS5C348_REG_HOURS 2 ··· 169 171 goto kfree_exit; 170 172 } 171 173 172 - dev_info(&spi->dev, "chip found, driver version " DRV_VERSION "\n"); 173 174 dev_info(&spi->dev, "spiclk %u KHz.\n", 174 175 (spi->max_speed_hz + 500) / 1000); 175 176 ··· 227 230 MODULE_AUTHOR("Atsushi Nemoto <anemo@mba.ocn.ne.jp>"); 228 231 MODULE_DESCRIPTION("Ricoh RS5C348 RTC driver"); 229 232 MODULE_LICENSE("GPL"); 230 - MODULE_VERSION(DRV_VERSION); 231 233 MODULE_ALIAS("spi:rtc-rs5c348");
+1 -5
drivers/rtc/rtc-rs5c372.c
··· 16 16 #include <linux/slab.h> 17 17 #include <linux/module.h> 18 18 19 - #define DRV_VERSION "0.6" 20 - 21 - 22 19 /* 23 20 * Ricoh has a family of I2C based RTCs, which differ only slightly from 24 21 * each other. Differences center on pinout (e.g. how many interrupts, ··· 637 640 if (rs5c372_get_datetime(client, &tm) < 0) 638 641 dev_warn(&client->dev, "clock needs to be set\n"); 639 642 640 - dev_info(&client->dev, "%s found, %s, driver version " DRV_VERSION "\n", 643 + dev_info(&client->dev, "%s found, %s\n", 641 644 ({ char *s; switch (rs5c372->type) { 642 645 case rtc_r2025sd: s = "r2025sd"; break; 643 646 case rtc_r2221tl: s = "r2221tl"; break; ··· 693 696 "Paul Mundt <lethal@linux-sh.org>"); 694 697 MODULE_DESCRIPTION("Ricoh RS5C372 RTC driver"); 695 698 MODULE_LICENSE("GPL"); 696 - MODULE_VERSION(DRV_VERSION);
-5
drivers/rtc/rtc-rx8581.c
··· 18 18 #include <linux/rtc.h> 19 19 #include <linux/log2.h> 20 20 21 - #define DRV_VERSION "0.1" 22 - 23 21 #define RX8581_REG_SC 0x00 /* Second in BCD */ 24 22 #define RX8581_REG_MN 0x01 /* Minute in BCD */ 25 23 #define RX8581_REG_HR 0x02 /* Hour in BCD */ ··· 290 292 rx8581->write_block_data = rx8581_write_block_data; 291 293 } 292 294 293 - dev_info(&client->dev, "chip found, driver version " DRV_VERSION "\n"); 294 - 295 295 rx8581->rtc = devm_rtc_device_register(&client->dev, 296 296 rx8581_driver.driver.name, &rx8581_rtc_ops, THIS_MODULE); 297 297 ··· 321 325 MODULE_AUTHOR("Martyn Welch <martyn.welch@ge.com>"); 322 326 MODULE_DESCRIPTION("Epson RX-8581 RTC driver"); 323 327 MODULE_LICENSE("GPL"); 324 - MODULE_VERSION(DRV_VERSION);
-2
drivers/rtc/rtc-sh.c
··· 30 30 #include <asm/rtc.h> 31 31 32 32 #define DRV_NAME "sh-rtc" 33 - #define DRV_VERSION "0.2.3" 34 33 35 34 #define RTC_REG(r) ((r) * rtc_reg_size) 36 35 ··· 789 790 module_platform_driver_probe(sh_rtc_platform_driver, sh_rtc_probe); 790 791 791 792 MODULE_DESCRIPTION("SuperH on-chip RTC driver"); 792 - MODULE_VERSION(DRV_VERSION); 793 793 MODULE_AUTHOR("Paul Mundt <lethal@linux-sh.org>, " 794 794 "Jamie Lenehan <lenehan@twibble.org>, " 795 795 "Angelo Castello <angelo.castello@st.com>");
-3
drivers/rtc/rtc-stk17ta8.c
··· 23 23 #include <linux/io.h> 24 24 #include <linux/module.h> 25 25 26 - #define DRV_VERSION "0.1" 27 - 28 26 #define RTC_REG_SIZE 0x20000 29 27 #define RTC_OFFSET 0x1fff0 30 28 ··· 364 366 MODULE_AUTHOR("Thomas Hommel <thomas.hommel@ge.com>"); 365 367 MODULE_DESCRIPTION("Simtek STK17TA8 RTC driver"); 366 368 MODULE_LICENSE("GPL"); 367 - MODULE_VERSION(DRV_VERSION);
-5
drivers/rtc/rtc-x1205.c
··· 24 24 #include <linux/module.h> 25 25 #include <linux/bitops.h> 26 26 27 - #define DRV_VERSION "1.0.8" 28 - 29 27 /* offsets into CCR area */ 30 28 31 29 #define CCR_SEC 0 ··· 632 634 if (x1205_validate_client(client) < 0) 633 635 return -ENODEV; 634 636 635 - dev_info(&client->dev, "chip found, driver version " DRV_VERSION "\n"); 636 - 637 637 rtc = devm_rtc_device_register(&client->dev, x1205_driver.driver.name, 638 638 &x1205_rtc_ops, THIS_MODULE); 639 639 ··· 689 693 "Alessandro Zummo <a.zummo@towertech.it>"); 690 694 MODULE_DESCRIPTION("Xicor/Intersil X1205 RTC driver"); 691 695 MODULE_LICENSE("GPL"); 692 - MODULE_VERSION(DRV_VERSION);