mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
drivers/rtc/rtc-tps6586x.c: remove incorrect use of rtc_device_unregister
Device managed functions do not need explicit freeing/unregistering. Moreover in this case it was done using non-device managed function which is incorrect. Hence remove it. Signed-off-by: Sachin Kamat <[email protected]> Cc: Laxman dewangan <[email protected]> Cc: Chiwoong Byun <[email protected]> Cc: Jonghwa Lee <[email protected]> Cc: Venu Byravarasu <[email protected]> Cc: Jingoo Han <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
569b05a300
commit
ad3f3cf489
1 changed files with 1 additions and 4 deletions
|
|
@ -289,15 +289,12 @@ static int tps6586x_rtc_probe(struct platform_device *pdev)
|
|||
if (ret < 0) {
|
||||
dev_err(&pdev->dev, "request IRQ(%d) failed with ret %d\n",
|
||||
rtc->irq, ret);
|
||||
goto fail_req_irq;
|
||||
goto fail_rtc_register;
|
||||
}
|
||||
disable_irq(rtc->irq);
|
||||
device_set_wakeup_capable(&pdev->dev, 1);
|
||||
return 0;
|
||||
|
||||
fail_req_irq:
|
||||
rtc_device_unregister(rtc->rtc);
|
||||
|
||||
fail_rtc_register:
|
||||
tps6586x_update(tps_dev, RTC_CTRL, 0,
|
||||
RTC_ENABLE | OSC_SRC_SEL | PRE_BYPASS | CL_SEL_MASK);
|
||||
|
|
|
|||
Loading…
Reference in a new issue