diff options
author | ejka <ejka@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-04-22 05:27:28 +0000 |
---|---|---|
committer | ejka <ejka@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-04-22 05:27:28 +0000 |
commit | e3101f5c1df3cce83656d99342cb2f36c1ba4329 (patch) | |
tree | 38aa0ae3902727b45bd295c029028dfcd551813f | |
parent | d5b39d59c0695420aada3a67f330ce6d88ab97a4 (diff) |
Return -ENODEV, when device is absent. This should fix lockups on boot.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7031 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | target/linux/ar7-2.6/files/arch/mips/ar7/vlynq.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/ar7-2.6/files/arch/mips/ar7/vlynq.c b/target/linux/ar7-2.6/files/arch/mips/ar7/vlynq.c index e0d3b1ffe..c49102082 100644 --- a/target/linux/ar7-2.6/files/arch/mips/ar7/vlynq.c +++ b/target/linux/ar7-2.6/files/arch/mips/ar7/vlynq.c @@ -307,6 +307,8 @@ int vlynq_device_enable(struct vlynq_device *dev) if (vlynq_linked(dev)) return vlynq_setup_irq(dev); } + + return -ENODEV; } void vlynq_device_disable(struct vlynq_device *dev) |