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:47 +0000 (09:24 +0200)
commit1807a0ef835aa358789dbd2328157ddb94f8c07a
treea4e9624c7b7a371cb8d4c462d7ab874b8db676d8
parent7ab8bf126ef64f0f8e3bca8385742a0d45185e8f
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]