aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlessandro Zummo <a.zummo@towertech.it>2006-04-11 01:54:42 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-04-11 09:18:47 -0400
commitf90a65060e6a71a818abc3584ac64f986b838fba (patch)
tree8b0eebcbbc447059c2c61f5209eb1801a645e6e0
parent015aefbb87f9e6bd5d3c82ece97f7a7ba8f9b66c (diff)
[PATCH] RTC subsystem: whitespaces and error messages cleanup
- fix whitespace - remove some debugging in excess Signed-off-by: Alessandro Zummo <a.zummo@towertech.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/rtc/rtc-m48t86.c2
-rw-r--r--drivers/rtc/rtc-pcf8563.c2
-rw-r--r--drivers/rtc/rtc-rs5c372.c3
-rw-r--r--drivers/rtc/rtc-x1205.c3
4 files changed, 1 insertions, 9 deletions
diff --git a/drivers/rtc/rtc-m48t86.c b/drivers/rtc/rtc-m48t86.c
index db445c872b1b..1fadada42a47 100644
--- a/drivers/rtc/rtc-m48t86.c
+++ b/drivers/rtc/rtc-m48t86.c
@@ -23,7 +23,7 @@
23#define M48T86_REG_SECALRM 0x01 23#define M48T86_REG_SECALRM 0x01
24#define M48T86_REG_MIN 0x02 24#define M48T86_REG_MIN 0x02
25#define M48T86_REG_MINALRM 0x03 25#define M48T86_REG_MINALRM 0x03
26#define M48T86_REG_HOUR 0x04 26#define M48T86_REG_HOUR 0x04
27#define M48T86_REG_HOURALRM 0x05 27#define M48T86_REG_HOURALRM 0x05
28#define M48T86_REG_DOW 0x06 /* 1 = sunday */ 28#define M48T86_REG_DOW 0x06 /* 1 = sunday */
29#define M48T86_REG_DOM 0x07 29#define M48T86_REG_DOM 0x07
diff --git a/drivers/rtc/rtc-pcf8563.c b/drivers/rtc/rtc-pcf8563.c
index d857d45bdbe8..26feca7caf07 100644
--- a/drivers/rtc/rtc-pcf8563.c
+++ b/drivers/rtc/rtc-pcf8563.c
@@ -321,8 +321,6 @@ static int pcf8563_detach(struct i2c_client *client)
321 int err; 321 int err;
322 struct rtc_device *rtc = i2c_get_clientdata(client); 322 struct rtc_device *rtc = i2c_get_clientdata(client);
323 323
324 dev_dbg(&client->dev, "%s\n", __FUNCTION__);
325
326 if (rtc) 324 if (rtc)
327 rtc_device_unregister(rtc); 325 rtc_device_unregister(rtc);
328 326
diff --git a/drivers/rtc/rtc-rs5c372.c b/drivers/rtc/rtc-rs5c372.c
index 396c8681f66c..b0aeb96aa5c7 100644
--- a/drivers/rtc/rtc-rs5c372.c
+++ b/drivers/rtc/rtc-rs5c372.c
@@ -193,7 +193,6 @@ static DEVICE_ATTR(osc, S_IRUGO, rs5c372_sysfs_show_osc, NULL);
193 193
194static int rs5c372_attach(struct i2c_adapter *adapter) 194static int rs5c372_attach(struct i2c_adapter *adapter)
195{ 195{
196 dev_dbg(&adapter->dev, "%s\n", __FUNCTION__);
197 return i2c_probe(adapter, &addr_data, rs5c372_probe); 196 return i2c_probe(adapter, &addr_data, rs5c372_probe);
198} 197}
199 198
@@ -260,8 +259,6 @@ static int rs5c372_detach(struct i2c_client *client)
260 int err; 259 int err;
261 struct rtc_device *rtc = i2c_get_clientdata(client); 260 struct rtc_device *rtc = i2c_get_clientdata(client);
262 261
263 dev_dbg(&client->dev, "%s\n", __FUNCTION__);
264
265 if (rtc) 262 if (rtc)
266 rtc_device_unregister(rtc); 263 rtc_device_unregister(rtc);
267 264
diff --git a/drivers/rtc/rtc-x1205.c b/drivers/rtc/rtc-x1205.c
index e2630659f04f..cdf0eba993be 100644
--- a/drivers/rtc/rtc-x1205.c
+++ b/drivers/rtc/rtc-x1205.c
@@ -498,7 +498,6 @@ static DEVICE_ATTR(dtrim, S_IRUGO, x1205_sysfs_show_dtrim, NULL);
498 498
499static int x1205_attach(struct i2c_adapter *adapter) 499static int x1205_attach(struct i2c_adapter *adapter)
500{ 500{
501 dev_dbg(&adapter->dev, "%s\n", __FUNCTION__);
502 return i2c_probe(adapter, &addr_data, x1205_probe); 501 return i2c_probe(adapter, &addr_data, x1205_probe);
503} 502}
504 503
@@ -587,8 +586,6 @@ static int x1205_detach(struct i2c_client *client)
587 int err; 586 int err;
588 struct rtc_device *rtc = i2c_get_clientdata(client); 587 struct rtc_device *rtc = i2c_get_clientdata(client);
589 588
590 dev_dbg(&client->dev, "%s\n", __FUNCTION__);
591
592 if (rtc) 589 if (rtc)
593 rtc_device_unregister(rtc); 590 rtc_device_unregister(rtc);
594 591