On Wed, Feb 13, 2019 at 07:23:03PM +0200, Leon Romanovsky wrote: > From: Parav Pandit <parav@xxxxxxxxxxxx> > > Instead of holding extra reference using get_device() that > device_unregister() releases, simplify it as below. > > device_add() balance with device_del(). > device_initialize() balance with put_device(). > > Signed-off-by: Parav Pandit <parav@xxxxxxxxxxxx> > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx> > --- > drivers/infiniband/core/device.c | 1 + > drivers/infiniband/core/sysfs.c | 7 ++----- > 2 files changed, 3 insertions(+), 5 deletions(-) Applied to for-next Thanks, Jason