RDMA/bnxt_re: Get rid of custom module reference counting
authorLeon Romanovsky <leonro@nvidia.com>
Thu, 1 Apr 2021 06:57:13 +0000 (09:57 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 19 Apr 2021 17:57:03 +0000 (14:57 -0300)
commit1900357e75dc2ff578d9965e14823a61f477c4a9
treefe8a7ae0894f48a714ce4a8e26b1e2adba9436c1
parentbcf9ee0520fa95c692eaf6ec5e61e55059c75e15
RDMA/bnxt_re: Get rid of custom module reference counting

Instead of manually messing with parent driver module reference counting
rely on export symbol mechanism to ensure that proper probe/remove chain
is performed.

Link: https://lore.kernel.org/r/20210401065715.565226-4-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Acked-By: Devesh Sharma <devesh.sharma@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/bnxt_re/main.c