* [PATCH] sh_intc: install enable, disable and shutdown callbacks
@ 2009-04-01 14:20 Magnus Damm
0 siblings, 0 replies; only message in thread
From: Magnus Damm @ 2009-04-01 14:20 UTC (permalink / raw)
To: linux-sh
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(+)
--- 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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-01 14:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-01 14:20 [PATCH] sh_intc: install enable, disable and shutdown callbacks Magnus Damm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox