diff options
author | Steve Glendinning <steve.glendinning@smsc.com> | 2009-01-25 20:54:46 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-25 20:54:46 -0500 |
commit | 150a7fcc5ccf6ffe4a2280f5a447d104ec77912d (patch) | |
tree | 309d9e8917804428b6e1133e835a29a14c3e9bde /drivers/net/usb/smsc95xx.c | |
parent | 01a1ac472f3cd3e24a5f70597346773115ef4586 (diff) |
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: Steve Glendinning <steve.glendinning@smsc.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/smsc95xx.c')
-rw-r--r-- | drivers/net/usb/smsc95xx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c index 26fabefdfd30..5b0b9647382c 100644 --- a/drivers/net/usb/smsc95xx.c +++ b/drivers/net/usb/smsc95xx.c | |||
@@ -306,7 +306,7 @@ static int smsc95xx_write_eeprom(struct usbnet *dev, u32 offset, u32 length, | |||
306 | return 0; | 306 | return 0; |
307 | } | 307 | } |
308 | 308 | ||
309 | static void smsc95xx_async_cmd_callback(struct urb *urb, struct pt_regs *regs) | 309 | static void smsc95xx_async_cmd_callback(struct urb *urb) |
310 | { | 310 | { |
311 | struct usb_context *usb_context = urb->context; | 311 | struct usb_context *usb_context = urb->context; |
312 | struct usbnet *dev = usb_context->dev; | 312 | struct usbnet *dev = usb_context->dev; |
@@ -348,7 +348,7 @@ static int smsc95xx_write_reg_async(struct usbnet *dev, u16 index, u32 *data) | |||
348 | 348 | ||
349 | usb_fill_control_urb(urb, dev->udev, usb_sndctrlpipe(dev->udev, 0), | 349 | usb_fill_control_urb(urb, dev->udev, usb_sndctrlpipe(dev->udev, 0), |
350 | (void *)&usb_context->req, data, size, | 350 | (void *)&usb_context->req, data, size, |
351 | (usb_complete_t)smsc95xx_async_cmd_callback, | 351 | smsc95xx_async_cmd_callback, |
352 | (void *)usb_context); | 352 | (void *)usb_context); |
353 | 353 | ||
354 | status = usb_submit_urb(urb, GFP_ATOMIC); | 354 | status = usb_submit_urb(urb, GFP_ATOMIC); |