r8169: don't request firmware when there's no userspace.
authorFrançois Romieu <romieu@fr.zoreil.com>
Sun, 24 Apr 2011 15:38:48 +0000 (17:38 +0200)
committerFrancois romieu <romieu@fr.zoreil.com>
Sun, 24 Apr 2011 15:42:57 +0000 (17:42 +0200)
The firmware is cached during the first successfull call to open() and
released once the network device is unregistered. The driver uses the
cached firmware between open() and unregister_netdev().

So far the firmware is optional : a failure to load the firmware does
not prevent open() to success. It is thus necessary to 1) unregister
all 816x / 810[23] devices and 2) force a driver probe to issue a new
firmware load.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Fixed-by: Ciprian Docan <docan@eden.rutgers.edu>
Cc: Realtek linux nic maintainers <nic_swsd@realtek.com>
drivers/net/r8169.c

Simple merge