IB/usnic: Use dev_get_drvdata
authorChuhong Yuan <hslester96@gmail.com>
Tue, 23 Jul 2019 11:49:28 +0000 (19:49 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 25 Jul 2019 17:02:00 +0000 (14:02 -0300)
commit4f96061b92da395ecd5325a87368670e1b1a7cc9
treef922fc890175f54b4427e61e8bb987205fb1fb16
parent39289bfc221423b27570e7c9157b690828e786cb
IB/usnic: Use dev_get_drvdata

Instead of using to_pci_dev + pci_get_drvdata, use dev_get_drvdata to make
the code simpler.

Link: https://lore.kernel.org/r/20190723114928.18424-1-hslester96@gmail.com
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/usnic/usnic_ib_verbs.c