diff options
Diffstat (limited to 'drivers/rtc')
| -rw-r--r-- | drivers/rtc/rtc-isl1208.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/rtc/rtc-isl1208.c b/drivers/rtc/rtc-isl1208.c index c016ad81767a..5a0bf7ce1033 100644 --- a/drivers/rtc/rtc-isl1208.c +++ b/drivers/rtc/rtc-isl1208.c | |||
| @@ -144,11 +144,7 @@ isl1208_i2c_validate_client(struct i2c_client *client) | |||
| 144 | static int | 144 | static int |
| 145 | isl1208_i2c_get_sr(struct i2c_client *client) | 145 | isl1208_i2c_get_sr(struct i2c_client *client) |
| 146 | { | 146 | { |
| 147 | int sr = i2c_smbus_read_byte_data(client, ISL1208_REG_SR); | 147 | return i2c_smbus_read_byte_data(client, ISL1208_REG_SR); |
| 148 | if (sr < 0) | ||
| 149 | return -EIO; | ||
| 150 | |||
| 151 | return sr; | ||
| 152 | } | 148 | } |
| 153 | 149 | ||
| 154 | static int | 150 | static int |
