diff mbox

sh: extend INTC with force_disable

Message ID 20100215114025.22039.11843.sendpatchset@t400s (mailing list archive)
State Accepted
Headers show

Commit Message

Magnus Damm Feb. 15, 2010, 11:40 a.m. UTC
None
diff mbox

Patch

--- 0001/drivers/sh/intc.c
+++ work/drivers/sh/intc.c	2010-02-15 20:03:32.000000000 +0900
@@ -851,6 +851,9 @@  void __init register_intc_controller(str
 		d->chip.mask_ack = intc_mask_ack;
 	}
 
+	/* disable bits matching force_disable before registering irqs */
+	if (desc->force_disable)
+		intc_enable_disable_enum(desc, d, desc->force_disable, 0);
 
 	/* disable bits matching force_enable before registering irqs */
 	if (desc->force_enable)
--- 0001/include/linux/sh_intc.h
+++ work/include/linux/sh_intc.h	2010-02-15 20:03:32.000000000 +0900
@@ -72,6 +72,7 @@  struct intc_hw_desc {
 struct intc_desc {
 	char *name;
 	intc_enum force_enable;
+	intc_enum force_disable;
 	struct intc_hw_desc hw;
 };