bnx2: don't request firmware when there's no userspace.
authorfrançois romieu <romieu@fr.zoreil.com>
Fri, 30 Sep 2011 00:36:52 +0000 (00:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Oct 2011 18:09:10 +0000 (14:09 -0400)
commit7880b72e94fd3cf3283de6752175191583bce9f0
treec758b01cf118d38b60abc8b2db0ff13873c30e8e
parent96c131842aab45b5d139d0bcb417796819f5ee92
bnx2: don't request firmware when there's no userspace.

The firmware is cached during the first successful call to open() and
released once the network device is unregistered. The driver uses the
cached firmware between open() and unregister_netdev().

It's similar to 953a12cc2889d1be92e80a2d0bab5ffef4942300 but the
firmware is mandatory.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2.c