diff options
author | li pengbo <Pengbo.Li@freescale.com> | 2014-11-12 19:16:40 +0800 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-11-23 06:49:01 -0500 |
commit | 1b51d32c0f0ac7cdcab0ae04d531129a020cc903 (patch) | |
tree | 5371840500ac23e3b8c6668aac6653998365f77c /drivers/block | |
parent | f333b9f7bc63dc8dbb4397af573852f50a76f00c (diff) |
sata: fix a bug in init_sata() for pci-sata card
Except the first loop, init_sata() should return 0 instead of 1
in the others.
This patch fix the issue of the 2nd sata port not workable on pci-sata card.
Signed-off-by: Pengbo Li <Pengbo.Li@freescale.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/sata_sil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/sata_sil.c b/drivers/block/sata_sil.c index 1f510cd265..b483dbb5d1 100644 --- a/drivers/block/sata_sil.c +++ b/drivers/block/sata_sil.c @@ -519,7 +519,7 @@ int init_sata(int dev) u16 word; if (init_done == 1 && dev < sata_info.maxport) - return 1; + return 0; init_done = 1; |