RDMA/core: Refactor ib_register_device() function
authorParav Pandit <parav@mellanox.com>
Wed, 17 Oct 2018 10:20:20 +0000 (13:20 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 17 Oct 2018 15:43:07 +0000 (11:43 -0400)
commit548cb4fbe80d68b9d1b8b30aca179636e74bec36
treeb24c338b65d8f19aeeb8d178432f9e896f5eaf35
parent67fecaf8e9cc28812042f61194ac0e0a9737f897
RDMA/core: Refactor ib_register_device() function

ib_register_device() does several allocation and initialization
steps. Split it into smaller more readable functions for easy
review and maintenance.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/device.c