diff options
author | Harini Katakam <harini.katakam@xilinx.com> | 2019-03-20 19:12:22 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-04 09:15:20 +0200 |
commit | 670588f2eb0f9f8ada16d834935bd535c31f482b (patch) | |
tree | 1203846e8725b326b8cd925c65b5923438e12eb5 /arch/arm/boot/dts/imx6qdl-icore-rqs.dtsi | |
parent | d1e7cfba1e8952b4d7f03d7acb14822c29f743e5 (diff) |
net: macb: Add null check for PCLK and HCLK
[ Upstream commit cd5afa91f078c0787be0a62b5ef90301c00b0271 ]
Both PCLK and HCLK are "required" clocks according to macb devicetree
documentation. There is a chance that devm_clk_get doesn't return a
negative error but just a NULL clock structure instead. In such a case
the driver proceeds as usual and uses pclk value 0 to calculate MDC
divisor which is incorrect. Hence fix the same in clock initialization.
Signed-off-by: Harini Katakam <harini.katakam@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin (Microsoft) <sashal@kernel.org>
Diffstat (limited to 'arch/arm/boot/dts/imx6qdl-icore-rqs.dtsi')
0 files changed, 0 insertions, 0 deletions