IB: Add devnode methods to cm_class and umad_class
authorRoland Dreier <roland@purestorage.com>
Mon, 23 May 2011 18:21:47 +0000 (11:21 -0700)
committerRoland Dreier <roland@purestorage.com>
Mon, 23 May 2011 18:24:28 +0000 (11:24 -0700)
commitc3af0980ce01dfb8e946990c3ae4c3727b1e9f26
tree13552e10c7b36da435d4aa950a9a569e561f3dff
parentc8367c4cd9de512d296fc557f121be62a43987f3
IB: Add devnode methods to cm_class and umad_class

We want the ucmX, umadX and issmX device nodes to show up under
/dev/infiniband, and additionally ucmX should have mode 0666.  Add
appropriate devnode methods to their class structs for this.

Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/cm.c
drivers/infiniband/core/user_mad.c