ARM: OMAP5+: sata: Move scsi_scan() to the right place

scsi_scan() must be called as part of scsi_init() and not
as part of sata_init().

Signed-off-by: Roger Quadros <rogerq@ti.com>
This commit is contained in:
Roger Quadros authored and Tom Rini committed 2014-10-10 09:44:42 -04:00
1 parent 3160b1b986
commit d59baeb76f
1 file changed
+1 -1
+1 -1
View File
@@ -70,7 +70,6 @@ int init_sata(int dev)
writel(val, TI_SATA_WRAPPER_BASE + TI_SATA_SYSCONFIG);
ret = ahci_init(DWC_AHSATA_BASE);
scsi_scan(1);
return ret;
}
@@ -79,4 +78,5 @@ int init_sata(int dev)
void scsi_init(void)
{
init_sata(0);
scsi_scan(1);
}