From: Yangtao Li Date: Tue, 20 Nov 2018 14:11:02 +0000 (-0500) Subject: RISC-V: add of_node_put() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=cd378dbb3dafbee16ef956d4101ede567f6ea2f7;p=linux.git RISC-V: add of_node_put() use of_node_put() to release the refcount. Signed-off-by: Yangtao Li Signed-off-by: Palmer Dabbelt --- diff --git a/arch/riscv/kernel/time.c b/arch/riscv/kernel/time.c index 1911c8f6b8a69..40470e669a351 100644 --- a/arch/riscv/kernel/time.c +++ b/arch/riscv/kernel/time.c @@ -26,6 +26,7 @@ void __init time_init(void) cpu = of_find_node_by_path("/cpus"); if (!cpu || of_property_read_u32(cpu, "timebase-frequency", &prop)) panic(KERN_WARNING "RISC-V system with no 'timebase-frequency' in DTS\n"); + of_node_put(cpu); riscv_timebase = prop; lpj_fine = riscv_timebase / HZ;