On Wed, Feb 13, 2019 at 07:23:04PM +0200, Leon Romanovsky wrote: > From: Parav Pandit <parav@xxxxxxxxxxxx> > > Refactor code for device and port sysfs attributes for reuse. > > while at it, rename counter part free function to > ib_free_port_attrs. > > Also attribute setup sequence is: > (a) port specific init. > (b) device stats alloc/init. > > So for cleanup, follow reverse sequence: > (a) device stats dealloc > (b) port specific cleanup > > Signed-off-by: Parav Pandit <parav@xxxxxxxxxxxx> > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx> > --- > drivers/infiniband/core/sysfs.c | 64 ++++++++++++++++++--------------- > 1 file changed, 35 insertions(+), 29 deletions(-) Applied to for-next Thanks, Jason