summaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>2017-10-13 00:05:28 +0200
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2017-10-13 00:10:15 +0200
commita283d27625ffe3dadf5daece25674eab89722b6a (patch)
tree567bb071f524880542128c3c8e72dff9ca165b84 /drivers/rtc
parentrtc: ds1511: switch to rtc_register_device (diff)
downloadlinux-a283d27625ffe3dadf5daece25674eab89722b6a.tar.xz
linux-a283d27625ffe3dadf5daece25674eab89722b6a.zip
rtc: ds1511: allow waking platform
Disabling interrupts when removing the driver is bad practice as this will prevent some platform from waking up when using that RTC. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-ds1511.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/rtc/rtc-ds1511.c b/drivers/rtc/rtc-ds1511.c
index d44635178771..eda45358d63a 100644
--- a/drivers/rtc/rtc-ds1511.c
+++ b/drivers/rtc/rtc-ds1511.c
@@ -511,16 +511,8 @@ static int ds1511_rtc_probe(struct platform_device *pdev)
static int ds1511_rtc_remove(struct platform_device *pdev)
{
- struct rtc_plat_data *pdata = platform_get_drvdata(pdev);
-
sysfs_remove_bin_file(&pdev->dev.kobj, &ds1511_nvram_attr);
- if (pdata->irq > 0) {
- /*
- * disable the alarm interrupt
- */
- rtc_write(rtc_read(RTC_CMD) & ~RTC_TIE, RTC_CMD);
- rtc_read(RTC_CMD1);
- }
+
return 0;
}