diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-04-29 19:19:28 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 21:28:28 -0400 |
commit | 6df80e211b49ecc23b2c1bd0d93c4a3346e21bf7 (patch) | |
tree | d4009bc1b4b041d2faedc30acd6698eb79185049 /drivers/rtc/rtc-ds1307.c | |
parent | 32e445aab4049692cfe5b6cafa8ab1706b0ef8a3 (diff) |
rtc: rtc-ds1307: use dev_dbg() instead of pr_debug()
dev_dbg() is preferred to pr_debug().
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-ds1307.c')
-rw-r--r-- | drivers/rtc/rtc-ds1307.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index a65621c42170..b859d3c67f11 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/drivers/rtc/rtc-ds1307.c | |||
@@ -713,7 +713,7 @@ static int ds1307_probe(struct i2c_client *client, | |||
713 | tmp = ds1307->read_block_data(ds1307->client, | 713 | tmp = ds1307->read_block_data(ds1307->client, |
714 | DS1337_REG_CONTROL, 2, buf); | 714 | DS1337_REG_CONTROL, 2, buf); |
715 | if (tmp != 2) { | 715 | if (tmp != 2) { |
716 | pr_debug("read error %d\n", tmp); | 716 | dev_dbg(&client->dev, "read error %d\n", tmp); |
717 | err = -EIO; | 717 | err = -EIO; |
718 | goto exit_free; | 718 | goto exit_free; |
719 | } | 719 | } |
@@ -752,7 +752,7 @@ static int ds1307_probe(struct i2c_client *client, | |||
752 | tmp = i2c_smbus_read_i2c_block_data(ds1307->client, | 752 | tmp = i2c_smbus_read_i2c_block_data(ds1307->client, |
753 | RX8025_REG_CTRL1 << 4 | 0x08, 2, buf); | 753 | RX8025_REG_CTRL1 << 4 | 0x08, 2, buf); |
754 | if (tmp != 2) { | 754 | if (tmp != 2) { |
755 | pr_debug("read error %d\n", tmp); | 755 | dev_dbg(&client->dev, "read error %d\n", tmp); |
756 | err = -EIO; | 756 | err = -EIO; |
757 | goto exit_free; | 757 | goto exit_free; |
758 | } | 758 | } |
@@ -796,7 +796,7 @@ static int ds1307_probe(struct i2c_client *client, | |||
796 | tmp = i2c_smbus_read_i2c_block_data(ds1307->client, | 796 | tmp = i2c_smbus_read_i2c_block_data(ds1307->client, |
797 | RX8025_REG_CTRL1 << 4 | 0x08, 2, buf); | 797 | RX8025_REG_CTRL1 << 4 | 0x08, 2, buf); |
798 | if (tmp != 2) { | 798 | if (tmp != 2) { |
799 | pr_debug("read error %d\n", tmp); | 799 | dev_dbg(&client->dev, "read error %d\n", tmp); |
800 | err = -EIO; | 800 | err = -EIO; |
801 | goto exit_free; | 801 | goto exit_free; |
802 | } | 802 | } |
@@ -824,7 +824,7 @@ read_rtc: | |||
824 | /* read RTC registers */ | 824 | /* read RTC registers */ |
825 | tmp = ds1307->read_block_data(ds1307->client, ds1307->offset, 8, buf); | 825 | tmp = ds1307->read_block_data(ds1307->client, ds1307->offset, 8, buf); |
826 | if (tmp != 8) { | 826 | if (tmp != 8) { |
827 | pr_debug("read error %d\n", tmp); | 827 | dev_dbg(&client->dev, "read error %d\n", tmp); |
828 | err = -EIO; | 828 | err = -EIO; |
829 | goto exit_free; | 829 | goto exit_free; |
830 | } | 830 | } |
@@ -866,7 +866,7 @@ read_rtc: | |||
866 | 866 | ||
867 | tmp = i2c_smbus_read_byte_data(client, DS1340_REG_FLAG); | 867 | tmp = i2c_smbus_read_byte_data(client, DS1340_REG_FLAG); |
868 | if (tmp < 0) { | 868 | if (tmp < 0) { |
869 | pr_debug("read error %d\n", tmp); | 869 | dev_dbg(&client->dev, "read error %d\n", tmp); |
870 | err = -EIO; | 870 | err = -EIO; |
871 | goto exit_free; | 871 | goto exit_free; |
872 | } | 872 | } |