drivers: firmware: psci: Simplify error path of psci_dt_init()
commitd036b5cfef6360808117abd0c53775b7a8981a2e
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 10 Apr 2019 08:20:24 +0000 (10 10:20 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 12 Apr 2019 08:59:37 +0000 (12 10:59 +0200)
tree4001e3976c196db22a29b905f58609a9b2741f85
parent0865d20c50741e1d37d4a1108764e5e45a83973e
drivers: firmware: psci: Simplify error path of psci_dt_init()

Instead of having each PSCI init function taking care of the
of_node_put(), deal with that from psci_dt_init(), as this enables
a bit simpler error path for each PSCI init function.

Co-developed-by: Lina Iyer <lina.iyer@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/firmware/psci/psci.c