x86: ivybridge: Set up the LPC device using driver model
[oweals/u-boot.git] / arch / x86 / cpu / ivybridge / bd82x6x.c
index c000aca856a8e1c61406c43d405c2b7188dbfdcb..72f2ed4d712c929210450ff6d5383eaed899cbc5 100644 (file)
@@ -65,6 +65,9 @@ static int bd82x6x_probe(struct udevice *dev)
        int sata_node, gma_node;
        int ret;
 
+       if (!(gd->flags & GD_FLG_RELOC))
+               return 0;
+
        hose = pci_bus_to_hose(0);
        lpc_enable(PCH_LPC_DEV);
        lpc_init(hose, PCH_LPC_DEV);