aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/ub.c
diff options
context:
space:
mode:
authorPete Zaitcev <zaitcev@redhat.com>2005-06-06 16:54:59 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-06-09 04:38:11 -0400
commit9f793d2c77ec5818679e4747c554d9333cecf476 (patch)
tree47904d2099435d4527432479e869311be7c6515b /drivers/block/ub.c
parent03e49d40ea3436cae0fe43708f11584130ee4a0c (diff)
[PATCH] USB: fix ub issues
This smoothes two imperfections: - Increase number of LUNs per device from 4 to 9. The best solution would be to remove this limit altogether, but that has to wait until the time when more than 26 hosts are allowed. - Replace mdelay with msleep in a probing routine. Signed-off-by: Pete Zaitcev <zaitcev@yahoo.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/block/ub.c')
-rw-r--r--drivers/block/ub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/ub.c b/drivers/block/ub.c
index adc4dcc306f4..19c5e59bcfa8 100644
--- a/drivers/block/ub.c
+++ b/drivers/block/ub.c
@@ -51,7 +51,7 @@
51 * This many LUNs per USB device. 51 * This many LUNs per USB device.
52 * Every one of them takes a host, see UB_MAX_HOSTS. 52 * Every one of them takes a host, see UB_MAX_HOSTS.
53 */ 53 */
54#define UB_MAX_LUNS 4 54#define UB_MAX_LUNS 9
55 55
56/* 56/*
57 */ 57 */
@@ -2100,7 +2100,7 @@ static int ub_probe(struct usb_interface *intf,
2100 nluns = rc; 2100 nluns = rc;
2101 break; 2101 break;
2102 } 2102 }
2103 mdelay(100); 2103 msleep(100);
2104 } 2104 }
2105 2105
2106 for (i = 0; i < nluns; i++) { 2106 for (i = 0; i < nluns; i++) {