]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerJoe Jin <joe.jin@oracle.com>
Wed, 16 May 2012 05:55:07 +0000 (13:55 +0800)
commitf4374a943c4043cec544e4ab5818cfdaaf473275
tree8131a05119c808b7daa0e82e5eb12e6dbcd589a0
parent5d785015e32daaea6195c7c9d24f859fb368b28b
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.

(cherry picked from commit 7880b72e94fd3cf3283de6752175191583bce9f0)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/bnx2.c