summaryrefslogtreecommitdiff
path: root/drivers/fpga/intel_sdm_mb.c
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@mailbox.org>2024-09-05 00:34:20 +0200
committerMarek Vasut <marek.vasut+renesas@mailbox.org>2024-11-03 12:25:57 +0100
commitc78a81396a0d7f42168a6bb7192af1545143be9b (patch)
tree4786656376bbaef47b2d3d1fb2ef6dfeecf416f7 /drivers/fpga/intel_sdm_mb.c
parent8e5e64d55de9ed97875a0c1b7f293a0286d64312 (diff)
clk: renesas: Fix missing unbind on driver look up failure
In case lists_driver_lookup_name("rst_gen3") fails, the clk_gen3 driver has to be unbound before erroring out. Reorder the function such that both clk_gen3 and rst_gen3 drivers are looked up first, if either look up fails then the function errors out right away. Second, the clk_gen3 is bound, if binding fails, the function still errors out right away because there is nothing to undo after either lists_driver_lookup_name() call. Finally, rst_gen3 is bound and if this binding fails, then that is the only place where clk_gen3 has to be unbound before erroring out. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Diffstat (limited to 'drivers/fpga/intel_sdm_mb.c')
0 files changed, 0 insertions, 0 deletions