Re: [PATCH rdma-next 1/8] RDMA/core: Use simpler device_del() instead of device_unregister()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux