提交 a283d276 编写于 作者: A Alexandre Belloni

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: NAlexandre Belloni <alexandre.belloni@free-electrons.com>
上级 3032269b
...@@ -511,16 +511,8 @@ static int ds1511_rtc_probe(struct platform_device *pdev) ...@@ -511,16 +511,8 @@ static int ds1511_rtc_probe(struct platform_device *pdev)
static int ds1511_rtc_remove(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); 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; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册