Return -ENODEV, when device is absent. This should fix lockups on boot.
authorEugene Konev <ejka@imfi.kspu.ru>
Sun, 22 Apr 2007 05:27:28 +0000 (05:27 +0000)
committerEugene Konev <ejka@imfi.kspu.ru>
Sun, 22 Apr 2007 05:27:28 +0000 (05:27 +0000)
SVN-Revision: 7031

target/linux/ar7-2.6/files/arch/mips/ar7/vlynq.c

index e0d3b1ffe2f2d76cb004b4c0aa40e07636e9777a..c491020820c90401b9a7145acbacd33d67164024 100644 (file)
@@ -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)