x86: Use the IRQ device when setting up the mptable
authorSimon Glass <sjg@chromium.org>
Wed, 20 Jan 2016 04:32:28 +0000 (21:32 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 24 Jan 2016 04:07:18 +0000 (12:07 +0800)
commitb565d66d2ca1748c9b0520fa4ba46b4a5dfa5468
treee86809b916cfdd34deb0596eb735427cbee8cfa4
parentd3b884b294f1927d6599ddb243a7e6c7bb9aaef3
x86: Use the IRQ device when setting up the mptable

Instead of searching for the device tree node, use the IRQ device which has
a record of it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/irq.c
arch/x86/lib/mpspec.c