]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: dwc3: rtk: use scoped device node handling to simplify error paths
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 14 Aug 2024 10:35:45 +0000 (12:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Sep 2024 07:52:46 +0000 (09:52 +0200)
commitf93e96c544ca723be5c4ff553630ad6a72d3c677
tree189cdbd9f1328ab7e772e11426315b1672046785
parent17d206a3687ec662b0eb7c1f083fb8abd29842be
usb: dwc3: rtk: 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.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/20240814-b4-cleanup-h-of-node-put-usb-v1-9-95481b9682bc@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-rtk.c