regulator: resolve supply after creating regulator
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Sat, 26 Sep 2020 21:32:41 +0000 (23:32 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 28 Sep 2020 18:03:17 +0000 (19:03 +0100)
commitaea6cb99703e17019e025aa71643b4d3e0a24413
treeee5dec3280fcf9038fb61a16107743cabe7653af
parent61aab5ad27d551f1535861e871dd9b03f5fbfd76
regulator: resolve supply after creating regulator

When creating a new regulator its supply cannot create the sysfs link
because the device is not yet published. Remove early supply resolving
since it will be done later anyway. This makes the following error
disappear and the symlinks get created instead.

  DCDC_REG1: supplied by VSYS
  VSYS: could not add device link regulator.3 err -2

Note: It doesn't fix the problem for bypassed regulators, though.

Fixes: 45389c47526d ("regulator: core: Add early supply resolution for regulators")
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Link: https://lore.kernel.org/r/ba09e0a8617ffeeb25cb4affffe6f3149319cef8.1601155770.git.mirq-linux@rere.qmqm.pl
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c