ar7: add NULL clock fix send upstream
authorMathias Kresin <dev@kresin.me>
Fri, 28 Jul 2017 17:05:33 +0000 (19:05 +0200)
committerMathias Kresin <dev@kresin.me>
Sat, 29 Jul 2017 07:24:17 +0000 (09:24 +0200)
commitea751c972b1f1f7f85a8dedda7dbccce31a58fd5
treecd4a9096743797e01b53fa0a90bd6ff6411daa7b
parentb90fb5ffe19b579219480c7c8f3ff4988dc2be6a
ar7: 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.

Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/ar7/patches-3.18/101-MIPS-AR7-allow-NULL-clock-for-clk_get_rate.patch [new file with mode: 0644]
target/linux/ar7/patches-4.1/101-MIPS-AR7-allow-NULL-clock-for-clk_get_rate.patch [new file with mode: 0644]