diff options
| -rw-r--r-- | drivers/rtc/rtc-v3020.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-v3020.c b/drivers/rtc/rtc-v3020.c index d07d89823020..25222cdccdc6 100644 --- a/drivers/rtc/rtc-v3020.c +++ b/drivers/rtc/rtc-v3020.c | |||
| @@ -303,7 +303,7 @@ static const struct rtc_class_ops v3020_rtc_ops = { | |||
| 303 | 303 | ||
| 304 | static int rtc_probe(struct platform_device *pdev) | 304 | static int rtc_probe(struct platform_device *pdev) |
| 305 | { | 305 | { |
| 306 | struct v3020_platform_data *pdata = pdev->dev.platform_data; | 306 | struct v3020_platform_data *pdata = dev_get_platdata(&pdev->dev); |
| 307 | struct v3020 *chip; | 307 | struct v3020 *chip; |
| 308 | int retval = -EBUSY; | 308 | int retval = -EBUSY; |
| 309 | int i; | 309 | int i; |
