net/mlx4: fix Tx doorbell register unmap
authorYongseok Koh <yskoh@mellanox.com>
Mon, 8 Apr 2019 18:23:13 +0000 (11:23 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 12 Apr 2019 09:02:02 +0000 (11:02 +0200)
commitb27669d691b15042333d472e2edc883046cd8c89
treedc01e5bcdc82f55194cb6843820072e2a5e774d3
parentbbda883ca068d430f289190e49ecbdf6ab2a0761
net/mlx4: fix Tx doorbell register unmap

If rdma-core library doesn't support remapping UAR registers, the register
shouldn't be unmapped on device stop.

Fixes: 0203d33a1059 ("net/mlx4: support secondary process")

Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx4/mlx4.c