summaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2018-02-12 23:47:51 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-03-01 10:49:31 +0100
commit8f21092d65fd83e7a227c3aa88b79b3ec33a9b6e (patch)
treef800f3d779f897a1fe7875b0026e7a13545a31b0 /drivers/rtc
parent7335fb9be32409c43d81c806c14220d4fcb0227f (diff)
downloadlinux-8f21092d65fd83e7a227c3aa88b79b3ec33a9b6e.tar.gz
linux-8f21092d65fd83e7a227c3aa88b79b3ec33a9b6e.tar.bz2
linux-8f21092d65fd83e7a227c3aa88b79b3ec33a9b6e.zip
rtc: stk17ta8: make alarms useful
Currently, the IRQs are disabled when the rtc driver is removed (e.g. when shutting down the platform). This means that the RTC will be unable to wakeup the platform. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-stk17ta8.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/rtc/rtc-stk17ta8.c b/drivers/rtc/rtc-stk17ta8.c
index a456cb6177ea..39a80491e567 100644
--- a/drivers/rtc/rtc-stk17ta8.c
+++ b/drivers/rtc/rtc-stk17ta8.c
@@ -340,11 +340,8 @@ static int stk17ta8_rtc_probe(struct platform_device *pdev)
static int stk17ta8_rtc_remove(struct platform_device *pdev)
{
- struct rtc_plat_data *pdata = platform_get_drvdata(pdev);
-
sysfs_remove_bin_file(&pdev->dev.kobj, &stk17ta8_nvram_attr);
- if (pdata->irq > 0)
- writeb(0, pdata->ioaddr + RTC_INTERRUPTS);
+
return 0;
}