From: Eugene Konev Date: Sun, 22 Apr 2007 05:27:28 +0000 (+0000) Subject: Return -ENODEV, when device is absent. This should fix lockups on boot. X-Git-Tag: reboot~29379 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=93bf001cc1a11938fdc951d2ff4adacb49efc316;p=oweals%2Fopenwrt.git Return -ENODEV, when device is absent. This should fix lockups on boot. SVN-Revision: 7031 --- 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)