]> err.no Git - linux-2.6/commit
IB/ehca: Fix device registration
authorHoang-Nam Nguyen <hnguyen@de.ibm.com>
Mon, 2 Oct 2006 21:52:17 +0000 (14:52 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 2 Oct 2006 21:52:17 +0000 (14:52 -0700)
commit0f248d9cde673a481eb3182909b54d07e9d58f72
tree9e6dd929c0b3ccee9be45c554a596a8370c83318
parent13b18c86176cab34ef30ef0a5962fcb0305f7269
IB/ehca: Fix device registration

Move the call to ib_register_device() later, since a device should not
be registered until it is completely read to be used.  This fixes
crashes that occur if an upper-layer driver such as IPoIB is loaded
before the ehca module.

Signed-off-by: Hoang-Nam Nguyen <hnguyen@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ehca/ehca_main.c