mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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
This commit is contained in:
commit
71e9e6a582
2 changed files with 12 additions and 11 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue