ramips: add NULL clock fix send upstream
authorMathias Kresin <dev@kresin.me>
Fri, 28 Jul 2017 17:38:04 +0000 (19:38 +0200)
committerMathias Kresin <dev@kresin.me>
Sat, 29 Jul 2017 07:24:23 +0000 (09:24 +0200)
commit0a17d2970a5ea9dd83b0fc194cccb38dca19d29b
tree0cef8451db4155d2b91d5e8c9356731a1e98c586
parentea751c972b1f1f7f85a8dedda7dbccce31a58fd5
ramips: add NULL clock fix send upstream

Make the behaviour of clk_get_rate consistent with common clk's
clk_get_rate by accepting NULL clocks as parameter. Some device
drivers rely on this, and will cause an OOPS otherwise.

Fixes: FS#735
Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/ramips/patches-4.9/0101-MIPS-ralink-allow-NULL-clock-for-clk_get_rate.patch [new file with mode: 0644]