x86: ivybridge: Drop the unused bd82x6x_init_extra()
authorSimon Glass <sjg@chromium.org>
Sun, 17 Jan 2016 23:11:36 +0000 (16:11 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 24 Jan 2016 04:09:40 +0000 (12:09 +0800)
This function does nothing now so can be dropped.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/ivybridge/bd82x6x.c
arch/x86/cpu/ivybridge/pci.c
arch/x86/include/asm/arch-ivybridge/bd82x6x.h

index 8e98fa29eeede4f09ac727b3b9db44cca480d05a..1fe2ce13c8c82c464f0172df6af8b71ff322e3de 100644 (file)
@@ -56,22 +56,6 @@ static int bd82x6x_probe(struct udevice *dev)
        return 0;
 }
 
-/* TODO(sjg@chromium.org): Move this to the PCH init() method */
-int bd82x6x_init_extra(void)
-{
-       const void *blob = gd->fdt_blob;
-       int sata_node;
-
-       sata_node = fdtdec_next_compatible(blob, 0,
-                                          COMPAT_INTEL_PANTHERPOINT_AHCI);
-       if (sata_node < 0) {
-               debug("%s: Cannot find SATA node\n", __func__);
-               return -EINVAL;
-       }
-
-       return 0;
-}
-
 static int bd82x6x_pch_get_sbase(struct udevice *dev, ulong *sbasep)
 {
        u32 rcba;
index b081469c96e9c551c54c3e6df723fd3c5ce21481..5195002676555e0ba5e9d36a764bc7e8ce2c6c9b 100644 (file)
@@ -22,7 +22,6 @@ static int pci_ivybridge_probe(struct udevice *bus)
        if (!(gd->flags & GD_FLG_RELOC))
                return 0;
        post_code(0x50);
-       bd82x6x_init_extra();
        post_code(0x51);
 
        return 0;
index faae5ff9a8f6abdbf16b8a0c5b68e5796b1e0bf8..7a05c7e444c86a271da8e3e6882cecf13c95ca4b 100644 (file)
@@ -11,6 +11,5 @@ void bd82x6x_sata_init(pci_dev_t dev, const void *blob, int node);
 void bd82x6x_usb_ehci_init(pci_dev_t dev);
 void bd82x6x_usb_xhci_init(pci_dev_t dev);
 int gma_func0_init(struct udevice *dev, const void *blob, int node);
-int bd82x6x_init_extra(void);
 
 #endif