aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar7-2.6/files/arch/mips
diff options
context:
space:
mode:
authorEugene Konev <ejka@openwrt.org>2007-04-22 05:27:28 +0000
committerEugene Konev <ejka@openwrt.org>2007-04-22 05:27:28 +0000
commit40bebf1dd6b9a9727cb6f76313bbe2f0cf74c4ad (patch)
tree38aa0ae3902727b45bd295c029028dfcd551813f /target/linux/ar7-2.6/files/arch/mips
parent432c94a644c370f925a8eab0236bb5f48976b380 (diff)
downloadupstream-40bebf1dd6b9a9727cb6f76313bbe2f0cf74c4ad.tar.gz
upstream-40bebf1dd6b9a9727cb6f76313bbe2f0cf74c4ad.tar.bz2
upstream-40bebf1dd6b9a9727cb6f76313bbe2f0cf74c4ad.zip
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
Diffstat (limited to 'target/linux/ar7-2.6/files/arch/mips')
-rw-r--r--target/linux/ar7-2.6/files/arch/mips/ar7/vlynq.c2
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 e0d3b1ffe2..c491020820 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)