struct dev_state definition in usbcore conflicted with
enum dev_state definition in rt2x00 driver so it was
renamed to usb_dev_state.

Update usbip for this change.

Signed-off-by: Valentina Manea <valentina.mane...@gmail.com>
---
 drivers/staging/usbip/stub_dev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/usbip/stub_dev.c b/drivers/staging/usbip/stub_dev.c
index 952743c..773d8ca 100644
--- a/drivers/staging/usbip/stub_dev.c
+++ b/drivers/staging/usbip/stub_dev.c
@@ -395,7 +395,7 @@ static int stub_probe(struct usb_device *udev)
         * (struct dev_state) as long as it is unique.
         */
        rc = usb_hub_claim_port(udev->parent, udev->portnum,
-                       (struct dev_state *) udev);
+                       (struct usb_dev_state *) udev);
        if (rc) {
                dev_dbg(&udev->dev, "unable to claim port\n");
                return rc;
@@ -464,7 +464,7 @@ static void stub_disconnect(struct usb_device *udev)
 
        /* release port */
        rc = usb_hub_release_port(udev->parent, udev->portnum,
-                                 (struct dev_state *) udev);
+                                 (struct usb_dev_state *) udev);
        if (rc) {
                dev_dbg(&udev->dev, "unable to release port\n");
                return;
-- 
1.8.1.2

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to