On Sat, 30 Mar 2024 18:53:01 +0000 Jonathan Cameron <jic23@xxxxxxxxxx> wrote: > From: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx> > > Switching to the _scoped() version removes the need for manual > calling of fwnode_handle_put() in the paths where the code > exits the loop early. In this case that's all in error paths. > > Note this would have made the bug fixed in the previous path much > less likely as it allows for direct returns. > > Took advantage of dev_err_probe() to futher simplify things given no > longer a need for the goto err. > > Cc: Olivier Moysan <olivier.moysan@xxxxxxxxxxx> > Cc: Fabrice Gasnier <fabrice.gasnier@xxxxxxxxxxx> > Tested-by: Fabrice Gasnier <fabrice.gasnier@xxxxxxxxxxx> > Acked-by: Fabrice Gasnier <fabrice.gasnier@xxxxxxxxxxx> > Signed-off-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx> Applied, Thanks,