aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/net/dm9601.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/net/dm9601.c')
-rw-r--r--drivers/usb/net/dm9601.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/net/dm9601.c b/drivers/usb/net/dm9601.c
index 5130cc7eb314..a67638601477 100644
--- a/drivers/usb/net/dm9601.c
+++ b/drivers/usb/net/dm9601.c
@@ -12,6 +12,7 @@
12 12
13#include <linux/module.h> 13#include <linux/module.h>
14#include <linux/sched.h> 14#include <linux/sched.h>
15#include <linux/stddef.h>
15#include <linux/init.h> 16#include <linux/init.h>
16#include <linux/netdevice.h> 17#include <linux/netdevice.h>
17#include <linux/etherdevice.h> 18#include <linux/etherdevice.h>
@@ -85,7 +86,7 @@ static int dm_write_reg(struct usbnet *dev, u8 reg, u8 value)
85 usb_sndctrlpipe(dev->udev, 0), 86 usb_sndctrlpipe(dev->udev, 0),
86 DM_WRITE_REG, 87 DM_WRITE_REG,
87 USB_DIR_OUT | USB_TYPE_VENDOR |USB_RECIP_DEVICE, 88 USB_DIR_OUT | USB_TYPE_VENDOR |USB_RECIP_DEVICE,
88 value, reg, 0, 0, USB_CTRL_SET_TIMEOUT); 89 value, reg, NULL, 0, USB_CTRL_SET_TIMEOUT);
89} 90}
90 91
91static void dm_write_async_callback(struct urb *urb) 92static void dm_write_async_callback(struct urb *urb)
@@ -171,7 +172,7 @@ static void dm_write_reg_async(struct usbnet *dev, u8 reg, u8 value)
171 172
172 usb_fill_control_urb(urb, dev->udev, 173 usb_fill_control_urb(urb, dev->udev,
173 usb_sndctrlpipe(dev->udev, 0), 174 usb_sndctrlpipe(dev->udev, 0),
174 (void *)req, 0, 0, dm_write_async_callback, req); 175 (void *)req, NULL, 0, dm_write_async_callback, req);
175 176
176 status = usb_submit_urb(urb, GFP_ATOMIC); 177 status = usb_submit_urb(urb, GFP_ATOMIC);
177 if (status < 0) { 178 if (status < 0) {