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

SVN-Revision: 7031
lede-17.01
Eugene Konev 2007-04-22 05:27:28 +00:00
parent 639fe9fd58
commit 93bf001cc1
1 changed files with 2 additions and 0 deletions

View 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)