From 93bf001cc1a11938fdc951d2ff4adacb49efc316 Mon Sep 17 00:00:00 2001 From: Eugene Konev Date: Sun, 22 Apr 2007 05:27:28 +0000 Subject: [PATCH] Return -ENODEV, when device is absent. This should fix lockups on boot. SVN-Revision: 7031 --- target/linux/ar7-2.6/files/arch/mips/ar7/vlynq.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.30.2