Skip to content

Commit f7dd254

Browse files
Magnus Dammpmundt
authored andcommitted
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 <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
1 parent 3093e78 commit f7dd254

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/sh/intc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,9 @@ void __init register_intc_controller(struct intc_desc *desc)
707707
d->chip.mask = intc_disable;
708708
d->chip.unmask = intc_enable;
709709
d->chip.mask_ack = intc_disable;
710+
d->chip.enable = intc_enable;
711+
d->chip.disable = intc_disable;
712+
d->chip.shutdown = intc_disable;
710713
d->chip.set_type = intc_set_sense;
711714

712715
#if defined(CONFIG_CPU_SH3) || defined(CONFIG_CPU_SH4A)

0 commit comments

Comments
 (0)