FROMGIT: drivers: base: Reduce device link removal code duplication
Reduce device link removal code duplication between the cases when SRCU is enabled and when it is disabled by moving the only differing piece of it (which is the removal of the link from the consumer and supplier lists) into a separate wrapper function (defined differently for each of the cases in question). No intentional functional impact. Reviewed-by:Saravana Kannan <saravanak@google.com> Signed-off-by:
Rafael J. Wysocki <rafael.j.wysocki@intel.com> Link: https://lore.kernel.org/r/4326215.LvFx2qVVIh@kreacher Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit 0c871315 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git driver-core-linus) Signed-off-by:
Greg Kroah-Hartman <gregkh@google.com> Change-Id: I0946e6bfa011e765551903683a4a11e87398273c
Loading