]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
b43: move hwrng registration driver to wireless core initialization
authorJohn W. Linville <linville@tuxdriver.com>
Fri, 6 Aug 2010 19:31:45 +0000 (15:31 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 16 Aug 2010 18:39:48 +0000 (14:39 -0400)
commit84c164a34ffe67908a932a2d641ec1a80c2d5435
tree5fe5cac69497ef54d765e6fa2faaabef431ae8ee
parent13eb670c104e15e06d38f3a210cfaf467a9c66de
b43: move hwrng registration driver to wireless core initialization

...and unregistration to core shutdown.  Previously, the driver
remained registered even when the hardware was shutdown.  That
causes the driver to return -ENODEV if the b43 device is IFF_DOWN.
This change causes the driver to disappear in that case, allowing
/dev/hwrng to still function if another hwrng device is available.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/main.c