WSL2-Linux-Kernel/arch/mips/loongson64/lemote-2f
Jonas Gorski 386787b1fc MIPS: Loongson 2F: allow NULL clock for clk_get_rate
Make the behaviour of clk_get_rate consistent with common clk's
clk_get_rate by accepting NULL clocks as parameter, as some device
drivers rely on this.

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: f8ede0f700 ("MIPS: Loongson 2F: Add CPU frequency scaling support")
Reported-by: Mathias Kresin <dev@kresin.me>
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/16777/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2017-09-06 12:36:59 +02:00
..
Makefile MIPS: Loongson: Cleanup CONFIG_LOONGSON_SUSPEND. 2015-11-11 08:38:28 +01:00
clock.c MIPS: Loongson 2F: allow NULL clock for clk_get_rate 2017-09-06 12:36:59 +02:00
ec_kb3310b.c MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00
ec_kb3310b.h MIPS: Loongson: Naming style cleanup and rework 2015-06-21 21:53:59 +02:00
irq.c MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00
machtype.c MIPS: Loongson: Naming style cleanup and rework 2015-06-21 21:53:59 +02:00
pm.c MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00
reset.c MIPS: Loongson: Naming style cleanup and rework 2015-06-21 21:53:59 +02:00