Return -ENODEV, when device is absent. This should fix lockups on boot.

SVN-Revision: 7031
master
Eugene Konev 18 years ago
parent 639fe9fd58
commit 93bf001cc1
  1. 2
      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)) if (vlynq_linked(dev))
return vlynq_setup_irq(dev); return vlynq_setup_irq(dev);
} }
return -ENODEV;
} }
void vlynq_device_disable(struct vlynq_device *dev) void vlynq_device_disable(struct vlynq_device *dev)

Loading…
Cancel
Save