]> git.karo-electronics.de Git - mv-sheeva.git/commit
IB/umad: Remove port_table[]
authorAlexander Chiang <achiang@hp.com>
Tue, 2 Feb 2010 19:08:30 +0000 (19:08 +0000)
committerRoland Dreier <rolandd@cisco.com>
Wed, 24 Feb 2010 18:23:44 +0000 (10:23 -0800)
commit6aa2a86ec430fb1ae739bd065d7ea6596997a2cf
treee26a9fb664c4a9bdf2aafe6efd8ca68bfbdc49b1
parent2b937afcab34e4f739e2f7cd6062870fbe6b2ccf
IB/umad: Remove port_table[]

We no longer need this data structure, as it was used to associate an
inode back to a struct ib_umad_port during ->open().  But now that
we're embedding a struct cdev in struct ib_umad_port, we can use the
container_of() macro to go from the inode back to the device instead.

Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/user_mad.c