From d2abe9314e418f55df7ed7318bcf31131d0143ae Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Wed, 23 Jan 2019 14:18:34 +0100 Subject: mb/{kontron,supermicro}: Use pcidev_on_root() Change-Id: I61b3e5c92830f02d61a108dadde25ff261099e57 Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/c/31051 Tested-by: build bot (Jenkins) Reviewed-by: Tristan Corrick --- src/mainboard/supermicro/x10slm-f/mainboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mainboard/supermicro/x10slm-f') diff --git a/src/mainboard/supermicro/x10slm-f/mainboard.c b/src/mainboard/supermicro/x10slm-f/mainboard.c index 8d0e3b0281..4bd5d159c1 100644 --- a/src/mainboard/supermicro/x10slm-f/mainboard.c +++ b/src/mainboard/supermicro/x10slm-f/mainboard.c @@ -32,7 +32,7 @@ */ static void hide_ast2400(void) { - struct device *dev = dev_find_slot(0, PCI_DEVFN(0x1c, 0)); + struct device *dev = pcidev_on_root(0x1c, 0); if (!dev) return; -- cgit v1.2.3