From: Magnus Damm Date: Wed, 1 Apr 2009 14:20:58 +0000 (+0000) Subject: sh: intc: install enable, disable and shutdown callbacks X-Git-Tag: firefly_0821_release~14775^2~13 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f7dd2548c471b1c7758611f6cd6393367d7ff649;p=firefly-linux-kernel-4.4.55.git sh: intc: install enable, disable and shutdown callbacks 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 Signed-off-by: Paul Mundt --- diff --git a/drivers/sh/intc.c b/drivers/sh/intc.c index 2269fbcaa182..b75f70155823 100644 --- a/drivers/sh/intc.c +++ b/drivers/sh/intc.c @@ -707,6 +707,9 @@ void __init register_intc_controller(struct intc_desc *desc) 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)