summaryrefslogtreecommitdiff
path: root/drivers/staging/usbip/stub_dev.c
diff options
context:
space:
mode:
authorValentina Manea <valentina.manea.m@gmail.com>2014-03-08 14:53:32 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-08 22:48:11 -0800
commit2c8c981589468ede4ed0dc97d94980dfa40f466e (patch)
tree27a1048ee740dc3ed8c6fc3d248bc6477e615fe4 /drivers/staging/usbip/stub_dev.c
parent435d948c2b37d51b9c66cd04fcee37d2d68d9659 (diff)
staging: usbip: let client choose device configuration
Since usbip-host is now a device driver and the client has full access to the shared device, it makes sense to let the client choose device configuration. Signed-off-by: Valentina Manea <valentina.manea.m@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/usbip/stub_dev.c')
-rw-r--r--drivers/staging/usbip/stub_dev.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/staging/usbip/stub_dev.c b/drivers/staging/usbip/stub_dev.c
index 60a3e3fe4dcb..1bd13cf9958b 100644
--- a/drivers/staging/usbip/stub_dev.c
+++ b/drivers/staging/usbip/stub_dev.c
@@ -337,7 +337,7 @@ static int stub_probe(struct usb_device *udev)
{
struct stub_device *sdev = NULL;
const char *udev_busid = dev_name(&udev->dev);
- int err = 0, config;
+ int err = 0;
struct bus_id_priv *busid_priv;
dev_dbg(&udev->dev, "Enter\n");
@@ -383,14 +383,6 @@ static int stub_probe(struct usb_device *udev)
busid_priv->shutdown_busid = 0;
- config = usb_choose_configuration(udev);
- if (config >= 0) {
- err = usb_set_configuration(udev, config);
- if (err && err != -ENODEV)
- dev_err(&udev->dev, "can't set config #%d, error %d\n",
- config, err);
- }
-
/* set private data to usb_device */
dev_set_drvdata(&udev->dev, sdev);
busid_priv->sdev = sdev;