Commit 4a7e569d authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] USB skeleton driver: remove direct calls to dev_set* and dev_get*

change dev_set_drvdata() and dev_get_drvdata() to
usb_set_intfdata() and usb_get_intfdata()
parent 3ffe2e2c
...@@ -582,7 +582,7 @@ static int skel_probe(struct usb_interface *interface, const struct usb_device_i ...@@ -582,7 +582,7 @@ static int skel_probe(struct usb_interface *interface, const struct usb_device_i
exit: exit:
if (dev) { if (dev) {
dev_set_drvdata (&interface->dev, dev); usb_set_intfdata (interface, dev);
return 0; return 0;
} }
return -ENODEV; return -ENODEV;
...@@ -599,8 +599,8 @@ static void skel_disconnect(struct usb_interface *interface) ...@@ -599,8 +599,8 @@ static void skel_disconnect(struct usb_interface *interface)
struct usb_skel *dev; struct usb_skel *dev;
int minor; int minor;
dev = dev_get_drvdata (&interface->dev); dev = usb_get_intfdata (interface);
dev_set_drvdata (&interface->dev, NULL); usb_set_intfdata (interface, NULL);
if (!dev) if (!dev)
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment