Skip to content

Commit

Permalink
[PATCH] RTC subsystem: whitespaces and error messages cleanup
Browse files Browse the repository at this point in the history
- 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>
  • Loading branch information
Alessandro Zummo authored and Linus Torvalds committed Apr 11, 2006
1 parent 015aefb commit f90a650
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion drivers/rtc/rtc-m48t86.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#define M48T86_REG_SECALRM 0x01
#define M48T86_REG_MIN 0x02
#define M48T86_REG_MINALRM 0x03
#define M48T86_REG_HOUR 0x04
#define M48T86_REG_HOUR 0x04
#define M48T86_REG_HOURALRM 0x05
#define M48T86_REG_DOW 0x06 /* 1 = sunday */
#define M48T86_REG_DOM 0x07
Expand Down
2 changes: 0 additions & 2 deletions drivers/rtc/rtc-pcf8563.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,6 @@ static int pcf8563_detach(struct i2c_client *client)
int err;
struct rtc_device *rtc = i2c_get_clientdata(client);

dev_dbg(&client->dev, "%s\n", __FUNCTION__);

if (rtc)
rtc_device_unregister(rtc);

Expand Down
3 changes: 0 additions & 3 deletions drivers/rtc/rtc-rs5c372.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ static DEVICE_ATTR(osc, S_IRUGO, rs5c372_sysfs_show_osc, NULL);

static int rs5c372_attach(struct i2c_adapter *adapter)
{
dev_dbg(&adapter->dev, "%s\n", __FUNCTION__);
return i2c_probe(adapter, &addr_data, rs5c372_probe);
}

Expand Down Expand Up @@ -260,8 +259,6 @@ static int rs5c372_detach(struct i2c_client *client)
int err;
struct rtc_device *rtc = i2c_get_clientdata(client);

dev_dbg(&client->dev, "%s\n", __FUNCTION__);

if (rtc)
rtc_device_unregister(rtc);

Expand Down
3 changes: 0 additions & 3 deletions drivers/rtc/rtc-x1205.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,6 @@ static DEVICE_ATTR(dtrim, S_IRUGO, x1205_sysfs_show_dtrim, NULL);

static int x1205_attach(struct i2c_adapter *adapter)
{
dev_dbg(&adapter->dev, "%s\n", __FUNCTION__);
return i2c_probe(adapter, &addr_data, x1205_probe);
}

Expand Down Expand Up @@ -587,8 +586,6 @@ static int x1205_detach(struct i2c_client *client)
int err;
struct rtc_device *rtc = i2c_get_clientdata(client);

dev_dbg(&client->dev, "%s\n", __FUNCTION__);

if (rtc)
rtc_device_unregister(rtc);

Expand Down

0 comments on commit f90a650

Please sign in to comment.