diff options
Diffstat (limited to 'drivers/rtc/rtc-pcf8563.c')
-rw-r--r-- | drivers/rtc/rtc-pcf8563.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-pcf8563.c b/drivers/rtc/rtc-pcf8563.c index b725913ccbe8..65f346b2fbae 100644 --- a/drivers/rtc/rtc-pcf8563.c +++ b/drivers/rtc/rtc-pcf8563.c | |||
@@ -212,6 +212,8 @@ static int pcf8563_probe(struct i2c_client *client, | |||
212 | 212 | ||
213 | dev_info(&client->dev, "chip found, driver version " DRV_VERSION "\n"); | 213 | dev_info(&client->dev, "chip found, driver version " DRV_VERSION "\n"); |
214 | 214 | ||
215 | i2c_set_clientdata(client, pcf8563); | ||
216 | |||
215 | pcf8563->rtc = rtc_device_register(pcf8563_driver.driver.name, | 217 | pcf8563->rtc = rtc_device_register(pcf8563_driver.driver.name, |
216 | &client->dev, &pcf8563_rtc_ops, THIS_MODULE); | 218 | &client->dev, &pcf8563_rtc_ops, THIS_MODULE); |
217 | 219 | ||
@@ -220,8 +222,6 @@ static int pcf8563_probe(struct i2c_client *client, | |||
220 | goto exit_kfree; | 222 | goto exit_kfree; |
221 | } | 223 | } |
222 | 224 | ||
223 | i2c_set_clientdata(client, pcf8563); | ||
224 | |||
225 | return 0; | 225 | return 0; |
226 | 226 | ||
227 | exit_kfree: | 227 | exit_kfree: |