RDMA/bnxt_re: Use ib_device_try_get()
authorJason Gunthorpe <jgg@mellanox.com>
Fri, 13 Mar 2020 16:33:25 +0000 (09:33 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 17 Mar 2020 23:15:03 +0000 (20:15 -0300)
commit3cae58047c1343949fb20c0e142845133ce0a074
tree94e9b9ced36d5ef9bdd66128db96184ed33ba1ea
parent67b3c8dceac6644322d5707687449f6dcbdff417
RDMA/bnxt_re: Use ib_device_try_get()

There are a couple places in this driver running from a work queue that
need the ib_device to be registered. Instead of using a broken internal
bit rely on the new core code to guarantee device registration.

Link: https://lore.kernel.org/r/1584117207-2664-2-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/bnxt_re/bnxt_re.h
drivers/infiniband/hw/bnxt_re/main.c