powerpc: add explicit OF includes
When removing prom.h include by of.h, several OF headers will no longer be implicitly included. Add explicit includes of of_*.h as needed. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Acked-by: Grant Likely <grant.likely@linaro.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Anatolij Gustschin <agust@denx.de> Cc: Kumar Gala <galak@kernel.crashing.org> Cc: Olof Johansson <olof@lixom.net> Cc: linuxppc-dev@lists.ozlabs.org
This commit is contained in:
@@ -535,7 +535,7 @@ static void __init mpic_scan_ht_pic(struct mpic *mpic, u8 __iomem *devbase,
|
||||
mpic->fixups[irq].data = readl(base + 4) | 0x80000000;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void __init mpic_scan_ht_pics(struct mpic *mpic)
|
||||
{
|
||||
@@ -1475,7 +1475,7 @@ struct mpic * __init mpic_alloc(struct device_node *node,
|
||||
* as a default instead of the value read from the HW.
|
||||
*/
|
||||
last_irq = (greg_feature & MPIC_GREG_FEATURE_LAST_SRC_MASK)
|
||||
>> MPIC_GREG_FEATURE_LAST_SRC_SHIFT;
|
||||
>> MPIC_GREG_FEATURE_LAST_SRC_SHIFT;
|
||||
if (isu_size)
|
||||
last_irq = isu_size * MPIC_MAX_ISU - 1;
|
||||
of_property_read_u32(mpic->node, "last-interrupt-source", &last_irq);
|
||||
@@ -1625,7 +1625,7 @@ void __init mpic_init(struct mpic *mpic)
|
||||
/* start with vector = source number, and masked */
|
||||
u32 vecpri = MPIC_VECPRI_MASK | i |
|
||||
(8 << MPIC_VECPRI_PRIORITY_SHIFT);
|
||||
|
||||
|
||||
/* check if protected */
|
||||
if (mpic->protected && test_bit(i, mpic->protected))
|
||||
continue;
|
||||
@@ -1634,7 +1634,7 @@ void __init mpic_init(struct mpic *mpic)
|
||||
mpic_irq_write(i, MPIC_INFO(IRQ_DESTINATION), 1 << cpu);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Init spurious vector */
|
||||
mpic_write(mpic->gregs, MPIC_INFO(GREG_SPURIOUS), mpic->spurious_vec);
|
||||
|
||||
|
Reference in New Issue
Block a user