commit | 8aec013afe6d9665eb478396026ebd4384dbe934 | [log] [tgz] |
---|---|---|
author | Mark Bloch <markb@mellanox.com> | Sat Jun 04 15:15:24 2016 +0300 |
committer | Doug Ledford <dledford@redhat.com> | Tue Jun 07 09:50:54 2016 -0400 |
tree | 83dfb6e20c1729f356dffa48d41e1a064a6314e8 | |
parent | 9b29953bf8ca23944c5e00dcc15ad7bd9fecdd4e [diff] |
IB/core: Initialize sysfs attributes before sysfs create group For dynamically allocated sysfs attributes there is a need to call sysfs_attr_init in order to comply with lockdep, not calling it will result in error complaining key is not in .data section. Fixes: b40f4757daa1 ("IB/core: Make device counter infrastructure dynamic") Signed-off-by: Mark Bloch <markb@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>