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>
This commit is contained in:
@@ -17,8 +17,6 @@
|
||||
#include <linux/rtc.h>
|
||||
#include <linux/delay.h>
|
||||
|
||||
#define DRV_VERSION "0.2"
|
||||
|
||||
/*
|
||||
* register indices
|
||||
*/
|
||||
@@ -218,8 +216,6 @@ max6900_probe(struct i2c_client *client, const struct i2c_device_id *id)
|
||||
if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C))
|
||||
return -ENODEV;
|
||||
|
||||
dev_info(&client->dev, "chip found, driver version " DRV_VERSION "\n");
|
||||
|
||||
rtc = devm_rtc_device_register(&client->dev, max6900_driver.driver.name,
|
||||
&max6900_rtc_ops, THIS_MODULE);
|
||||
if (IS_ERR(rtc))
|
||||
@@ -249,4 +245,3 @@ module_i2c_driver(max6900_driver);
|
||||
MODULE_DESCRIPTION("Maxim MAX6900 RTC driver");
|
||||
MODULE_AUTHOR("Dale Farnsworth <dale@farnsworth.org>");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_VERSION(DRV_VERSION);
|
||||
|
Reference in New Issue
Block a user