提交 a44802f8 编写于 作者: L Leo Song 提交者: Linus Torvalds

drivers/rtc/rtc-pxa.c: fix alarm can't wake up system issue

Fix alarm can't wake up system issue
Signed-off-by: NLeo Song <liangs@marvell.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 c4243de7
...@@ -309,8 +309,6 @@ static int pxa_rtc_proc(struct device *dev, struct seq_file *seq) ...@@ -309,8 +309,6 @@ static int pxa_rtc_proc(struct device *dev, struct seq_file *seq)
} }
static const struct rtc_class_ops pxa_rtc_ops = { static const struct rtc_class_ops pxa_rtc_ops = {
.open = pxa_rtc_open,
.release = pxa_rtc_release,
.read_time = pxa_rtc_read_time, .read_time = pxa_rtc_read_time,
.set_time = pxa_rtc_set_time, .set_time = pxa_rtc_set_time,
.read_alarm = pxa_rtc_read_alarm, .read_alarm = pxa_rtc_read_alarm,
...@@ -350,7 +348,7 @@ static int __init pxa_rtc_probe(struct platform_device *pdev) ...@@ -350,7 +348,7 @@ static int __init pxa_rtc_probe(struct platform_device *pdev)
dev_err(dev, "No alarm IRQ resource defined\n"); dev_err(dev, "No alarm IRQ resource defined\n");
goto err_ress; goto err_ress;
} }
pxa_rtc_open(dev);
ret = -ENOMEM; ret = -ENOMEM;
pxa_rtc->base = ioremap(pxa_rtc->ress->start, pxa_rtc->base = ioremap(pxa_rtc->ress->start,
resource_size(pxa_rtc->ress)); resource_size(pxa_rtc->ress));
...@@ -396,6 +394,9 @@ static int __exit pxa_rtc_remove(struct platform_device *pdev) ...@@ -396,6 +394,9 @@ static int __exit pxa_rtc_remove(struct platform_device *pdev)
{ {
struct pxa_rtc *pxa_rtc = platform_get_drvdata(pdev); struct pxa_rtc *pxa_rtc = platform_get_drvdata(pdev);
struct device *dev = &pdev->dev;
pxa_rtc_release(dev);
rtc_device_unregister(pxa_rtc->rtc); rtc_device_unregister(pxa_rtc->rtc);
spin_lock_irq(&pxa_rtc->lock); spin_lock_irq(&pxa_rtc->lock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册