summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds2011-04-26 04:00:55 +0200
committerLinus Torvalds2011-04-26 04:00:55 +0200
commit71e9e6a5823a6b7976c3e47e2f6c7ba364526a93 (patch)
treeecfa8b3dfd8453dc632199890df3f065cedb1bd0 /drivers
parentSELINUX: Make selinux cache VFS RCU walks safe (diff)
parentrtc: fix coh901331 startup crash (diff)
downloadkernel-qcow2-linux-71e9e6a5823a6b7976c3e47e2f6c7ba364526a93.tar.gz
kernel-qcow2-linux-71e9e6a5823a6b7976c3e47e2f6c7ba364526a93.tar.xz
kernel-qcow2-linux-71e9e6a5823a6b7976c3e47e2f6c7ba364526a93.zip
Merge branch 'for-torvalds' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson
* 'for-torvalds' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson: rtc: fix coh901331 startup crash mach-ux500: fix i2c0 device setup regression
Diffstat (limited to 'drivers')
-rw-r--r--drivers/rtc/rtc-coh901331.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-coh901331.c b/drivers/rtc/rtc-coh901331.c
index 316f484999b5..80f9c88214c5 100644
--- a/drivers/rtc/rtc-coh901331.c
+++ b/drivers/rtc/rtc-coh901331.c
@@ -220,6 +220,7 @@ static int __init coh901331_probe(struct platform_device *pdev)
}
clk_disable(rtap->clk);
+ platform_set_drvdata(pdev, rtap);
rtap->rtc = rtc_device_register("coh901331", &pdev->dev, &coh901331_ops,
THIS_MODULE);
if (IS_ERR(rtap->rtc)) {
@@ -227,11 +228,10 @@ static int __init coh901331_probe(struct platform_device *pdev)
goto out_no_rtc;
}
- platform_set_drvdata(pdev, rtap);
-
return 0;
out_no_rtc:
+ platform_set_drvdata(pdev, NULL);
out_no_clk_enable:
clk_put(rtap->clk);
out_no_clk: