diff options
author | Chris Ruehl <chris.ruehl@gtsys.com.hk> | 2020-12-10 16:04:54 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-04 11:38:10 +0100 |
commit | 95fdc1ea3bfc52f04508b5d7f0cf307604b3bcf9 (patch) | |
tree | d833961ae5c1e610003ceede22a1771b973d7385 /drivers/video/of_display_timing.c | |
parent | 03112ff9eabfb14eb8aa2d93584c6de17345c64d (diff) | |
download | linux-rt-95fdc1ea3bfc52f04508b5d7f0cf307604b3bcf9.tar.gz |
phy: rockchip-emmc: emmc_phy_init() always return 0
[ Upstream commit 39961bd6b70e5a5d7c4b5483ad8e1db6b5765c60 ]
rockchip_emmc_phy_init() return variable is not set with the error value
if clk_get() failed. 'emmcclk' is optional, thus use clk_get_optional()
and if the return value != NULL make error processing and set the
return code accordingly.
Fixes: 52c0624a10cce phy: rockchip-emmc: Set phyctrl_frqsel based on card clock
Signed-off-by: Chris Ruehl <chris.ruehl@gtsys.com.hk>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20201210080454.17379-1-chris.ruehl@gtsys.com.hk
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/video/of_display_timing.c')
0 files changed, 0 insertions, 0 deletions