Commit 150a7fcc authored by Steve Glendinning's avatar Steve Glendinning Committed by David S. Miller

smsc95xx: fix function prototype of async callback

smsc95xx_async_cmd_callback doesn't currently match usb_complete_t, so
there's a cast to force the square peg into the round hole.  This patch
fixes this properly.
Signed-off-by: default avatarSteve Glendinning <>
Signed-off-by: default avatarDavid S. Miller <>
parent 01a1ac47
......@@ -306,7 +306,7 @@ static int smsc95xx_write_eeprom(struct usbnet *dev, u32 offset, u32 length,
return 0;
static void smsc95xx_async_cmd_callback(struct urb *urb, struct pt_regs *regs)
static void smsc95xx_async_cmd_callback(struct urb *urb)
struct usb_context *usb_context = urb->context;
struct usbnet *dev = usb_context->dev;
......@@ -348,7 +348,7 @@ static int smsc95xx_write_reg_async(struct usbnet *dev, u16 index, u32 *data)
usb_fill_control_urb(urb, dev->udev, usb_sndctrlpipe(dev->udev, 0),
(void *)&usb_context->req, data, size,
(void *)usb_context);
status = usb_submit_urb(urb, GFP_ATOMIC);
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