]> git.baikalelectronics.ru Git - kernel.git/commit
CPUFREQ: Loongson1: Replace kzalloc() with kcalloc()
authorKelvin Cheung <keguang.zhang@gmail.com>
Tue, 12 Apr 2016 10:40:16 +0000 (18:40 +0800)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 13 May 2016 12:02:08 +0000 (14:02 +0200)
commitf1c2594d9d03bf0cc8a7affd42a5e0955f2e56c1
tree731013b01e8a5f0b871dd4cbeaacc93b1a2cebef
parent670549804a6fb39ed8026e40d886c38e9076ee74
CPUFREQ: Loongson1: Replace kzalloc() with kcalloc()

This patch replaces kzalloc() with kcalloc() when allocating
frequency table, and remove unnecessary 'out of memory' message.

Signed-off-by: Kelvin Cheung <keguang.zhang@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
Cc: linux-pm@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/13053/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
drivers/cpufreq/loongson1-cpufreq.c