diff options
author | Eugene Konev <ejka@imfi.kspu.ru> | 2007-04-22 05:27:28 +0000 |
---|---|---|
committer | Eugene Konev <ejka@imfi.kspu.ru> | 2007-04-22 05:27:28 +0000 |
commit | 93bf001cc1a11938fdc951d2ff4adacb49efc316 (patch) | |
tree | d6e76354468346c53c6ff17d144afb432d2208c4 /target/linux/ar7-2.6/files/arch/mips/ar7/vlynq.c | |
parent | 639fe9fd58ff74bc7d4361c12334604de4bbd5df (diff) | |
download | upstream-93bf001cc1a11938fdc951d2ff4adacb49efc316.tar.gz upstream-93bf001cc1a11938fdc951d2ff4adacb49efc316.tar.bz2 upstream-93bf001cc1a11938fdc951d2ff4adacb49efc316.zip |
Return -ENODEV, when device is absent. This should fix lockups on boot.
SVN-Revision: 7031
Diffstat (limited to 'target/linux/ar7-2.6/files/arch/mips/ar7/vlynq.c')
-rw-r--r-- | target/linux/ar7-2.6/files/arch/mips/ar7/vlynq.c | 2 |
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) |