diff options
author | Niklas Cassel <[email protected]> | 2015-05-12 09:43:14 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2015-05-12 23:18:40 -0400 |
commit | bced870152161435cc59a53e77f3699f8e8f22ca (patch) | |
tree | 9e8fc570004c5c77d5edc5935509dd0e02e94ef3 /scripts/gdb/linux/modules.py | |
parent | 44d4f8d74e1dd07f248f35d74419f07d44f326e6 (diff) |
net: phy: micrel: Fix regression in kszphy_probe
Don't do clock-mode-select if clk == NULL,
since when building without CONFIG_HAVE_CLK,
clk_get returns NULL and clk_get_rate returns 0.
Doing clock-mode-select in this cause causes kszphy_probe to
return -EINVAL and thus prevents the device from being probed.
The original code (before regression) would return 0
when building without CONFIG_HAVE_CLK.
Cc: stable <[email protected]> # 3.18+
Fixes: 1fadee0c3645 ("net/phy: micrel: Add clock support for
KSZ8021/KSZ8031")
Reviewed-by: Fabio Estevam <[email protected]>
Reviewed-by: Johan Hovold <[email protected]>
Signed-off-by: Niklas Cassel <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions