]> git.sur5r.net Git - u-boot/blobdiff - drivers/block/sata_dwc.c
powerpc/usb: fix bug of CPU hang when missing USB PHY clock
[u-boot] / drivers / block / sata_dwc.c
index cc4446ad7b6af52a74c088d135a712c717589c17..28d87f538bff23ab8cd988bdf017c6a1ffd40fe6 100644 (file)
@@ -35,6 +35,7 @@
 #include <asm/io.h>
 #include <malloc.h>
 #include <ata.h>
+#include <sata.h>
 #include <linux/ctype.h>
 
 #include "sata_dwc.h"
@@ -268,8 +269,6 @@ static int ata_dev_read_id(struct ata_device *dev, unsigned int *p_class,
                unsigned int flags, u16 *id);
 static int check_sata_dev_state(void);
 
-extern block_dev_desc_t sata_dev_desc[CONFIG_SYS_SATA_MAX_DEVICE];
-
 static const struct ata_port_info sata_dwc_port_info[] = {
        {
                .flags          = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY |