diff options
Diffstat (limited to 'arch/powerpc/sysdev/mpic_msi.c')
-rw-r--r-- | arch/powerpc/sysdev/mpic_msi.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/powerpc/sysdev/mpic_msi.c b/arch/powerpc/sysdev/mpic_msi.c index b076793033c2..9ca4d8f444ff 100644 --- a/arch/powerpc/sysdev/mpic_msi.c +++ b/arch/powerpc/sysdev/mpic_msi.c | |||
@@ -117,16 +117,17 @@ static int mpic_msi_reserve_dt_hwirqs(struct mpic *mpic) | |||
117 | int i, len; | 117 | int i, len; |
118 | const u32 *p; | 118 | const u32 *p; |
119 | 119 | ||
120 | p = of_get_property(mpic->of_node, "msi-available-ranges", &len); | 120 | p = of_get_property(mpic->irqhost->of_node, |
121 | "msi-available-ranges", &len); | ||
121 | if (!p) { | 122 | if (!p) { |
122 | pr_debug("mpic: no msi-available-ranges property found on %s\n", | 123 | pr_debug("mpic: no msi-available-ranges property found on %s\n", |
123 | mpic->of_node->full_name); | 124 | mpic->irqhost->of_node->full_name); |
124 | return -ENODEV; | 125 | return -ENODEV; |
125 | } | 126 | } |
126 | 127 | ||
127 | if (len % 8 != 0) { | 128 | if (len % 8 != 0) { |
128 | printk(KERN_WARNING "mpic: Malformed msi-available-ranges " | 129 | printk(KERN_WARNING "mpic: Malformed msi-available-ranges " |
129 | "property on %s\n", mpic->of_node->full_name); | 130 | "property on %s\n", mpic->irqhost->of_node->full_name); |
130 | return -EINVAL; | 131 | return -EINVAL; |
131 | } | 132 | } |
132 | 133 | ||