projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e371589
)
asix: Fix return value in AX88172A driver bind function
author
Christian Riesch
<christian.riesch@omicron.at>
Wed, 18 Jul 2012 10:56:52 +0000
(12:56 +0200)
committer
David S. Miller
<davem@davemloft.net>
Wed, 18 Jul 2012 16:32:57 +0000
(09:32 -0700)
Return -ENOTSUPP if the initialization fails because the
device is configured for a mode that is not supported by the driver.
Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/ax88172a.c
patch
|
blob
|
history
diff --git
a/drivers/net/usb/ax88172a.c
b/drivers/net/usb/ax88172a.c
index 534a144bd9e7ea653ca5e12039f692092e2535a4..3d0f8fa0538641142cc1aeaca5af900a81b65a98 100644
(file)
--- a/
drivers/net/usb/ax88172a.c
+++ b/
drivers/net/usb/ax88172a.c
@@
-274,6
+274,7
@@
static int ax88172a_bind(struct usbnet *dev, struct usb_interface *intf)
break;
default:
netdev_err(dev->net, "Interface mode not supported by driver\n");
+ ret = -ENOTSUPP;
goto free;
}