diff options
author | Simon Glass <sjg@chromium.org> | 2020-02-06 19:54:58 +0300 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2020-02-07 17:45:35 +0300 |
commit | 69c2dc937a53f4f35688c1289720625e002f3791 (patch) | |
tree | 30fc725691a932988bcfe1258ea49e86e56a84e6 /arch/x86/cpu/apollolake/fsp_s.c | |
parent | ba876079714db52887cab9f068ea1136de4cc107 (diff) | |
download | u-boot-69c2dc937a53f4f35688c1289720625e002f3791.tar.xz |
x86: Give each driver an IRQ type
Add an IRQ type to each driver and use irq_first_device_type() to find
and probe the correct one.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/cpu/apollolake/fsp_s.c')
-rw-r--r-- | arch/x86/cpu/apollolake/fsp_s.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/cpu/apollolake/fsp_s.c b/arch/x86/cpu/apollolake/fsp_s.c index f8fa4dec8f..b2d9130841 100644 --- a/arch/x86/cpu/apollolake/fsp_s.c +++ b/arch/x86/cpu/apollolake/fsp_s.c @@ -535,7 +535,7 @@ int arch_fsps_preinit(void) struct udevice *itss; int ret; - ret = uclass_first_device_err(UCLASS_IRQ, &itss); + ret = irq_first_device_type(X86_IRQT_ITSS, &itss); if (ret) return log_msg_ret("no itss", ret); /* @@ -576,7 +576,7 @@ int arch_fsp_init_r(void) if (ret) return ret; - ret = uclass_first_device_err(UCLASS_IRQ, &itss); + ret = irq_first_device_type(X86_IRQT_ITSS, &itss); if (ret) return log_msg_ret("no itss", ret); /* Restore GPIO IRQ polarities back to previous settings */ |