diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-06-22 11:32:04 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-06-22 11:32:04 -0700 | 
| commit | 0e789314f8c0b50bd19bf08dc5624b9604d60183 (patch) | |
| tree | 64b6b9655e944284937f5eeff643f0754f35d0af /drivers/rtc/rtc-s3c.c | |
| parent | f5dec51172b81db226a23f309bc737ad021af35b (diff) | |
| parent | 7e27d6e778cd87b6f2415515d7127eba53fe5d02 (diff) | |
Merge commit 'v2.6.35-rc3' into for-linus
Diffstat (limited to 'drivers/rtc/rtc-s3c.c')
| -rw-r--r-- | drivers/rtc/rtc-s3c.c | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c index e5972b2c17b..70b68d35f96 100644 --- a/drivers/rtc/rtc-s3c.c +++ b/drivers/rtc/rtc-s3c.c @@ -495,8 +495,6 @@ static int __devinit s3c_rtc_probe(struct platform_device *pdev)   	pr_debug("s3c2410_rtc: RTCCON=%02x\n",  		 readb(s3c_rtc_base + S3C2410_RTCCON)); -	s3c_rtc_setfreq(&pdev->dev, 1); -  	device_init_wakeup(&pdev->dev, 1);  	/* register RTC and exit */ @@ -510,14 +508,17 @@ static int __devinit s3c_rtc_probe(struct platform_device *pdev)  		goto err_nortc;  	} +	s3c_rtc_cpu_type = platform_get_device_id(pdev)->driver_data; +  	if (s3c_rtc_cpu_type == TYPE_S3C64XX)  		rtc->max_user_freq = 32768;  	else  		rtc->max_user_freq = 128; -	s3c_rtc_cpu_type = platform_get_device_id(pdev)->driver_data; -  	platform_set_drvdata(pdev, rtc); + +	s3c_rtc_setfreq(&pdev->dev, 1); +  	return 0;   err_nortc: | 
