From e3101f5c1df3cce83656d99342cb2f36c1ba4329 Mon Sep 17 00:00:00 2001 From: ejka Date: Sun, 22 Apr 2007 05:27:28 +0000 Subject: 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 --- target/linux/ar7-2.6/files/arch/mips/ar7/vlynq.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'target/linux/ar7-2.6/files') 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) -- cgit v1.2.3