RDMA/core: Depend on device_add() to add device attributes
authorParav Pandit <parav@mellanox.com>
Wed, 5 Sep 2018 06:47:58 +0000 (09:47 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 5 Sep 2018 22:19:18 +0000 (16:19 -0600)
commitadee9f3f3bbb317c5469f84deba01eef4b86515b
tree4e40df660e33e96cbb18c16a3530e89ce1e8611f
parent08e74be103051861eb2c1ee52a2dcf119cde264f
RDMA/core: Depend on device_add() to add device attributes

Instead of adding/removing device attribute files, depend on device_add()
which considers adding these device files based on NULL terminated
attributes group array.

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: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/sysfs.c
include/rdma/ib_verbs.h