]> git.baikalelectronics.ru Git - kernel.git/commit
iwmc3200wifi: add iwm_if_add and iwm_if_remove
authorZhu Yi <yi.zhu@intel.com>
Mon, 15 Jun 2009 19:36:14 +0000 (21:36 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 19 Jun 2009 15:50:16 +0000 (11:50 -0400)
commitd7853bbcc6e02dc43459eb88898fda38dc33f49e
treeedc3d4ff1a2ba516b3619a7d5fcdfd22820eb43d
parentbd068fc0445bb29ddccaec4eb9d0fcb7a604fd15
iwmc3200wifi: add iwm_if_add and iwm_if_remove

We used to do alloc_netdev and register_netdev at the same time in
iwm_if_alloc. But some bus related structures will only be initialized
after iwm_priv is allocated. This caused a race condition that the
netdev might be registered earlier. The patch adds iwm_if_add and
iwm_if_remove so that the bus layer could register the device after
all initialization is done.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: Samuel Ortiz <samuel.ortiz@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwmc3200wifi/iwm.h
drivers/net/wireless/iwmc3200wifi/netdev.c
drivers/net/wireless/iwmc3200wifi/sdio.c