nvmem: qcom-spmi-sdam: register at device init time
authorJohan Hovold <johan+linaro@kernel.org>
Mon, 6 Feb 2023 13:43:54 +0000 (13:43 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Feb 2023 18:06:59 +0000 (19:06 +0100)
commiteb7dda20f42a9137e9ee53d5ed3b743d49338cb5
tree14640723cb2d80af910d7dbb8ee957530078417d
parent3e5ac22aa564026e99defc3a8e02082521a5b231
nvmem: qcom-spmi-sdam: register at device init time

There are currently no in-tree users of the Qualcomm SDAM nvmem driver
and there is generally no point in registering a driver that can be
built as a module at subsys init time.

Register the driver at the normal device init time instead and let
driver core sort out the probe order.

Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20230206134356.839737-21-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/qcom-spmi-sdam.c