Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

asix: Fix return value in AX88172A driver bind function

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>

authored by

Christian Riesch and committed by
David S. Miller
fcc24db5 e3715899

+1
+1
drivers/net/usb/ax88172a.c
··· 274 274 break; 275 275 default: 276 276 netdev_err(dev->net, "Interface mode not supported by driver\n"); 277 + ret = -ENOTSUPP; 277 278 goto free; 278 279 } 279 280