diff mbox

sh_intc: install enable, disable and shutdown callbacks

Message ID 20090401142058.32553.60588.sendpatchset@rx1.opensource.se (mailing list archive)
State Accepted
Headers show

Commit Message

Magnus Damm April 1, 2009, 2:20 p.m. UTC
From: Magnus Damm <damm@igel.co.jp>

Modify the intc code to install a disable callback. The current
solution without a disable callback results in use of the
generic default_disable() function. This function is a no-op
so suspend_device_irqs() will not disable any intc interrupts
at suspend time without this patch. Also, install enable and
shutdown callbacks while at it.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
---

 drivers/sh/intc.c |    3 +++
 1 file changed, 3 insertions(+)

--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

--- 0001/drivers/sh/intc.c
+++ work/drivers/sh/intc.c	2009-04-01 21:03:04.000000000 +0900
@@ -707,6 +707,9 @@  void __init register_intc_controller(str
 	d->chip.mask = intc_disable;
 	d->chip.unmask = intc_enable;
 	d->chip.mask_ack = intc_disable;
+	d->chip.enable = intc_enable;
+	d->chip.disable = intc_disable;
+	d->chip.shutdown = intc_disable;
 	d->chip.set_type = intc_set_sense;
 
 #if defined(CONFIG_CPU_SH3) || defined(CONFIG_CPU_SH4A)