diff options
author | Jason Liu <jason.hui@linaro.org> | 2011-12-14 22:03:31 +0800 |
---|---|---|
committer | Eric Nelson <eric.nelson@boundarydevices.com> | 2012-08-28 09:41:25 -0700 |
commit | a685b1ef540ac4be3826992b32f9d3cb526db4c0 (patch) | |
tree | 29d7da41137c0d213c7528469b7d54c8e602a724 /drivers/rtc | |
parent | c9050f65ce817d9e062e17027573a2c573d3e9c8 (diff) |
build fix and driver fix
Signed-off-by: Jason Liu <jason.hui@linaro.org>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-snvs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-snvs.c b/drivers/rtc/rtc-snvs.c index dfd784936b28..0fd8b23a5d1a 100644 --- a/drivers/rtc/rtc-snvs.c +++ b/drivers/rtc/rtc-snvs.c @@ -483,6 +483,7 @@ static int snvs_rtc_probe(struct platform_device *pdev) pdata->ioaddr = ioremap(pdata->baseaddr, 0xC00); ioaddr = pdata->ioaddr; pdata->irq = platform_get_irq(pdev, 0); + platform_set_drvdata(pdev, pdata); /* initialize glitch detect */ __raw_writel(SNVS_LPPGDR_INIT, ioaddr + SNVS_LPPGDR); @@ -520,7 +521,6 @@ static int snvs_rtc_probe(struct platform_device *pdev) } pdata->rtc = rtc; - platform_set_drvdata(pdev, pdata); tv.tv_nsec = 0; tv.tv_sec = rtc_read_lp_counter(ioaddr + SNVS_LPSRTCMR); |