]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Oct 2011 18:09:10 +0000 (14:09 -0400)
commita54b1400520c982b6d6de9f407b696c0874fca79
treec758b01cf118d38b60abc8b2db0ff13873c30e8e
parent24b27afa118e2592dfa6a624e740396e84a2d57c
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 f2f4cd48dd4ab3399f4316ed3907771262c8762f 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