]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
driver core: Remove the link if there is no driver with AUTO flag
authorYong Wu <yong.wu@mediatek.com>
Tue, 1 Jan 2019 04:51:05 +0000 (12:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 13:25:26 +0000 (14:25 +0100)
commit0fe6f7874d467456da6f6a221dd92499a3ab1780
tree7e45a7113487214b2f63efcf39db81ded7d10e54
parent8a4b32691120b8fd6b029f5ad37d742a97ec82c1
driver core: Remove the link if there is no driver with AUTO flag

DL_FLAG_AUTOREMOVE_CONSUMER/SUPPLIER means "Remove the link
automatically on consumer/supplier driver unbind", that means we should
remove whole the device_link when there is no this driver no matter what
the ref_count of the link is.

CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c