IB/ipath: Initialize diagpkt file on device init only
authorRobert Walsh <rjwalsh@pathscale.com>
Tue, 10 Oct 2006 21:55:45 +0000 (14:55 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 16 Oct 2006 17:06:07 +0000 (10:06 -0700)
commit6ef93dddfe11a72ab98a37ac4ef20ad681b008b0
tree4d8ed1a54364463366a60e9a3352a6361058121e
parentfb7711e71ea7cd0d3e77e969df59162388c8a1f9
IB/ipath: Initialize diagpkt file on device init only

Don't attempt to set up the diagpkt device in the module init code.
Instead, wait until a piece of hardware is initialized.  Fixes a
problem when loading the ib_ipath module when no InfiniPath hardware
is present: modprobe would go into the D state and stay there.

Signed-off-by: Robert Walsh <robert.walsh@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_diag.c
drivers/infiniband/hw/ipath/ipath_driver.c
drivers/infiniband/hw/ipath/ipath_kernel.h