summaryrefslogtreecommitdiff
path: root/drivers/peci
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2024-08-14 12:35:42 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-09-03 09:52:45 +0200
commit34e8df2fb2de4e56fdd91a03ffe466f3c88a67df (patch)
tree1f298930fb4aa97662622992a702f720e59489db /drivers/peci
parent81d905b1022033a5885e2d2c169606eabf669084 (diff)
usb: dwc3: imx8mp: use scoped device node handling to simplify error paths
Obtain the device node reference with scoped/cleanup.h to reduce error handling and make the code a bit simpler. Scoped/cleanup.h coding style expects variable declaration with initialization, so the of_get_compatible_child() call has to be moved earlier, before any goto jumps happen. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Reviewed-by: Frank Li <Frank.Li@nxp.com> Link: https://lore.kernel.org/r/20240814-b4-cleanup-h-of-node-put-usb-v1-6-95481b9682bc@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/peci')
0 files changed, 0 insertions, 0 deletions