diff options
Diffstat (limited to 'drivers/rtc/rtc-pcf8563.c')
-rw-r--r-- | drivers/rtc/rtc-pcf8563.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-pcf8563.c b/drivers/rtc/rtc-pcf8563.c index b725913ccbe8..1af42b4a6f59 100644 --- a/drivers/rtc/rtc-pcf8563.c +++ b/drivers/rtc/rtc-pcf8563.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/i2c.h> | 17 | #include <linux/i2c.h> |
18 | #include <linux/bcd.h> | 18 | #include <linux/bcd.h> |
19 | #include <linux/rtc.h> | 19 | #include <linux/rtc.h> |
20 | #include <linux/slab.h> | ||
20 | 21 | ||
21 | #define DRV_VERSION "0.4.3" | 22 | #define DRV_VERSION "0.4.3" |
22 | 23 | ||
@@ -212,6 +213,8 @@ static int pcf8563_probe(struct i2c_client *client, | |||
212 | 213 | ||
213 | dev_info(&client->dev, "chip found, driver version " DRV_VERSION "\n"); | 214 | dev_info(&client->dev, "chip found, driver version " DRV_VERSION "\n"); |
214 | 215 | ||
216 | i2c_set_clientdata(client, pcf8563); | ||
217 | |||
215 | pcf8563->rtc = rtc_device_register(pcf8563_driver.driver.name, | 218 | pcf8563->rtc = rtc_device_register(pcf8563_driver.driver.name, |
216 | &client->dev, &pcf8563_rtc_ops, THIS_MODULE); | 219 | &client->dev, &pcf8563_rtc_ops, THIS_MODULE); |
217 | 220 | ||
@@ -220,8 +223,6 @@ static int pcf8563_probe(struct i2c_client *client, | |||
220 | goto exit_kfree; | 223 | goto exit_kfree; |
221 | } | 224 | } |
222 | 225 | ||
223 | i2c_set_clientdata(client, pcf8563); | ||
224 | |||
225 | return 0; | 226 | return 0; |
226 | 227 | ||
227 | exit_kfree: | 228 | exit_kfree: |