]> www.infradead.org Git - users/willy/xarray.git/commit
phy: phy-rockchip-inno-usb2: Handle failed extcon allocation better
authorDragan Simic <dsimic@manjaro.org>
Thu, 5 Sep 2024 08:28:23 +0000 (10:28 +0200)
committerVinod Koul <vkoul@kernel.org>
Mon, 7 Oct 2024 06:23:16 +0000 (11:53 +0530)
commit595ad7a336bf21f9d111a033820cd95d70343bd1
tree552018f1a14a1e76ebdb6a262d08d8342975077f
parent449d2a523a0c3ca8f4c993b8e37795c2aa174da6
phy: phy-rockchip-inno-usb2: Handle failed extcon allocation better

Return the actual error code upon failure to allocate extcon device, instead
of hardcoding -ENOMEM.  Use dev_err_probe() to also log appropriate messages,
which is fine because the containing function is used in the probe path.

Helped-by: Heiko Stubner <heiko@sntech.de>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Dragan Simic <dsimic@manjaro.org>
Link: https://lore.kernel.org/r/cc4995aa3e569be6bc23ca126b41fba82d50eeee.1725524802.git.dsimic@manjaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/rockchip/phy-rockchip-inno-usb2.c