diff options
-rw-r--r-- | drivers/rtc/rtc-s3c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c index 6adebf31ea69..70b68d35f969 100644 --- a/drivers/rtc/rtc-s3c.c +++ b/drivers/rtc/rtc-s3c.c | |||
@@ -508,13 +508,13 @@ static int __devinit s3c_rtc_probe(struct platform_device *pdev) | |||
508 | goto err_nortc; | 508 | goto err_nortc; |
509 | } | 509 | } |
510 | 510 | ||
511 | s3c_rtc_cpu_type = platform_get_device_id(pdev)->driver_data; | ||
512 | |||
511 | if (s3c_rtc_cpu_type == TYPE_S3C64XX) | 513 | if (s3c_rtc_cpu_type == TYPE_S3C64XX) |
512 | rtc->max_user_freq = 32768; | 514 | rtc->max_user_freq = 32768; |
513 | else | 515 | else |
514 | rtc->max_user_freq = 128; | 516 | rtc->max_user_freq = 128; |
515 | 517 | ||
516 | s3c_rtc_cpu_type = platform_get_device_id(pdev)->driver_data; | ||
517 | |||
518 | platform_set_drvdata(pdev, rtc); | 518 | platform_set_drvdata(pdev, rtc); |
519 | 519 | ||
520 | s3c_rtc_setfreq(&pdev->dev, 1); | 520 | s3c_rtc_setfreq(&pdev->dev, 1); |