summaryrefslogtreecommitdiff
path: root/arch/x86/lib/mpspec.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/lib/mpspec.c')
-rw-r--r--arch/x86/lib/mpspec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/lib/mpspec.c b/arch/x86/lib/mpspec.c
index 17e977c..a6e493d 100644
--- a/arch/x86/lib/mpspec.c
+++ b/arch/x86/lib/mpspec.c
@@ -304,7 +304,8 @@ static int mptable_add_intsrc(struct mp_config_table *mc,
}
/* Get I/O interrupt information from device tree */
- cell = fdt_getprop(blob, dev->of_offset, "intel,pirq-routing", &len);
+ cell = fdt_getprop(blob, dev_of_offset(dev), "intel,pirq-routing",
+ &len);
if (!cell)
return -ENOENT;