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:52 +0000 (09:24 +0200)
commit2247af82df2174829eb5a37076ead0520d3ab580
tree7c66098720510ea2f70d7f196842786f011565fa
parent1807a0ef835aa358789dbd2328157ddb94f8c07a
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.4/0100-MIPS-ralink-allow-NULL-clock-for-clk_get_rate.patch [new file with mode: 0644]