Commit 106dcff0 authored by Saravana Kannan's avatar Saravana Kannan
Browse files

UPSTREAM: regulator: core: Don't try to remove device links if add failed



device_link_add() might not always succeed depending on the type of
device link and the rest of the dependencies in the system. If
device_link_add() didn't succeed, then we shouldn't try to remove the
link later on as it might remove a link someone else created.

Signed-off-by: default avatarSaravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20191115000438.45970-1-saravanak@google.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
(cherry-picked from b59b6544)
Change-Id: I6cffa3ca884b74122307931e8f6615f31c33ef55
parent 0f09c714
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment