diff options
Diffstat (limited to 'drivers/rtc/rtc-pcf8583.c')
| -rw-r--r-- | drivers/rtc/rtc-pcf8583.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-pcf8583.c b/drivers/rtc/rtc-pcf8583.c index 7d33cda3f8f6..2d201afead3b 100644 --- a/drivers/rtc/rtc-pcf8583.c +++ b/drivers/rtc/rtc-pcf8583.c | |||
| @@ -277,6 +277,8 @@ static int pcf8583_probe(struct i2c_client *client, | |||
| 277 | if (!pcf8583) | 277 | if (!pcf8583) |
| 278 | return -ENOMEM; | 278 | return -ENOMEM; |
| 279 | 279 | ||
| 280 | i2c_set_clientdata(client, pcf8583); | ||
| 281 | |||
| 280 | pcf8583->rtc = rtc_device_register(pcf8583_driver.driver.name, | 282 | pcf8583->rtc = rtc_device_register(pcf8583_driver.driver.name, |
| 281 | &client->dev, &pcf8583_rtc_ops, THIS_MODULE); | 283 | &client->dev, &pcf8583_rtc_ops, THIS_MODULE); |
| 282 | 284 | ||
| @@ -285,7 +287,6 @@ static int pcf8583_probe(struct i2c_client *client, | |||
| 285 | goto exit_kfree; | 287 | goto exit_kfree; |
| 286 | } | 288 | } |
| 287 | 289 | ||
| 288 | i2c_set_clientdata(client, pcf8583); | ||
| 289 | return 0; | 290 | return 0; |
| 290 | 291 | ||
| 291 | exit_kfree: | 292 | exit_kfree: |
