diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-11-06 10:46:18 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-11-06 10:46:18 -0500 |
commit | 330f28f691e9b349e34adcaf82b273cf061bb491 (patch) | |
tree | fca3bfe41eff25ef19f576cef1979c68f6521af5 /drivers/usb/serial/ipaq.c | |
parent | fe3e78e073d25308756f38019956061153267769 (diff) | |
parent | 6fc786d5034ed7ce2d43c459211137de6d99dd28 (diff) |
Merge branch 'for-2.6.32' into for-2.6.33
Diffstat (limited to 'drivers/usb/serial/ipaq.c')
-rw-r--r-- | drivers/usb/serial/ipaq.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/usb/serial/ipaq.c b/drivers/usb/serial/ipaq.c index 24fcc64b837d..d6231c38813e 100644 --- a/drivers/usb/serial/ipaq.c +++ b/drivers/usb/serial/ipaq.c | |||
@@ -966,6 +966,15 @@ static int ipaq_calc_num_ports(struct usb_serial *serial) | |||
966 | static int ipaq_startup(struct usb_serial *serial) | 966 | static int ipaq_startup(struct usb_serial *serial) |
967 | { | 967 | { |
968 | dbg("%s", __func__); | 968 | dbg("%s", __func__); |
969 | |||
970 | /* Some of the devices in ipaq_id_table[] are composite, and we | ||
971 | * shouldn't bind to all the interfaces. This test will rule out | ||
972 | * some obviously invalid possibilities. | ||
973 | */ | ||
974 | if (serial->num_bulk_in < serial->num_ports || | ||
975 | serial->num_bulk_out < serial->num_ports) | ||
976 | return -ENODEV; | ||
977 | |||
969 | if (serial->dev->actconfig->desc.bConfigurationValue != 1) { | 978 | if (serial->dev->actconfig->desc.bConfigurationValue != 1) { |
970 | /* | 979 | /* |
971 | * FIXME: HP iPaq rx3715, possibly others, have 1 config that | 980 | * FIXME: HP iPaq rx3715, possibly others, have 1 config that |