Release file firmware when no firmware reset is required.
Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
if (err < 0)
goto err_out;
if (err == 0)
- goto wait_init;
+ goto ready;
if (first_boot != 0x55555555) {
NXWR32(adapter, CRB_CMDPEG_STATE, 0);
| (_NETXEN_NIC_LINUX_SUBVERSION);
NXWR32(adapter, CRB_DRIVER_VERSION, val);
+ready:
NXWR32(adapter, NX_CRB_DEV_STATE, NX_DEV_READY);
wait_init:
netxen_check_options(adapter);
- return 0;
+ /* fall through and release firmware */
err_out:
netxen_release_firmware(adapter);