summaryrefslogtreecommitdiff
path: root/drivers/scsi/scsi.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-09-12 09:32:51 -0400
committerTom Rini <trini@konsulko.com>2017-09-12 09:32:51 -0400
commitde2ad2c40db389e4747f566e44aa7f1a1aec91fb (patch)
tree76bd1340bc1b8b25e5acffeed74bceea5913969a /drivers/scsi/scsi.c
parentd81a1de96e2636163783c342b8fda965e696e382 (diff)
parentee87a097b0f66158ce2985940a5f28ba15a3552d (diff)
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'drivers/scsi/scsi.c')
-rw-r--r--drivers/scsi/scsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c
index 1a65a3f9b9..df998921f5 100644
--- a/drivers/scsi/scsi.c
+++ b/drivers/scsi/scsi.c
@@ -580,7 +580,7 @@ static int do_scsi_scan_one(struct udevice *dev, int id, int lun, bool verbose)
*/
snprintf(str, sizeof(str), "id%dlun%d", id, lun);
ret = blk_create_devicef(dev, "scsi_blk", str, IF_TYPE_SCSI, -1,
- bd.blksz, bd.blksz * bd.lba, &bdev);
+ bd.blksz, bd.lba, &bdev);
if (ret) {
debug("Can't create device\n");
return ret;