diff options
author | Harini Katakam <harini.katakam@xilinx.com> | 2019-03-20 14:42:22 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-03-21 21:22:41 +0100 |
commit | cd5afa91f078c0787be0a62b5ef90301c00b0271 (patch) | |
tree | 4f0219e80adbc12e69d89e53f5d8c960fa9bd62a /fs/befs | |
parent | net: phy: Add DP83825I to the DP83822 driver (diff) | |
download | linux-cd5afa91f078c0787be0a62b5ef90301c00b0271.tar.xz linux-cd5afa91f078c0787be0a62b5ef90301c00b0271.zip |
net: macb: Add null check for PCLK and HCLK
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>
Diffstat (limited to 'fs/befs')
0 files changed, 0 insertions, 0 deletions