summaryrefslogtreecommitdiff
path: root/arch/arm/mach-davinci/board-dm355-evm.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2015-11-26 03:35:27 +0300
committerSekhar Nori <nsekhar@ti.com>2015-12-15 12:59:34 +0300
commit5bcd927233d18fbfabed461b31b0118147648525 (patch)
treea123e5afeec1a4ec2d518514ddff71bff064f129 /arch/arm/mach-davinci/board-dm355-evm.c
parent1b50b0c1ceb5652e5ee985b52761a414ceecbe20 (diff)
downloadlinux-5bcd927233d18fbfabed461b31b0118147648525.tar.xz
ARM: davinci: fix a problematic usage of WARN()
WARN() takes a condition and a format string. The condition was omitted. So I added it. Signed-off-by: Geliang Tang <geliangtang@163.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'arch/arm/mach-davinci/board-dm355-evm.c')
-rw-r--r--arch/arm/mach-davinci/board-dm355-evm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/mach-davinci/board-dm355-evm.c b/arch/arm/mach-davinci/board-dm355-evm.c
index b46b4d25f93e..f80873e4215d 100644
--- a/arch/arm/mach-davinci/board-dm355-evm.c
+++ b/arch/arm/mach-davinci/board-dm355-evm.c
@@ -384,9 +384,7 @@ static __init void dm355_evm_init(void)
dm355evm_dm9000_rsrc[2].start = gpio_to_irq(1);
aemif = clk_get(&dm355evm_dm9000.dev, "aemif");
- if (IS_ERR(aemif))
- WARN("%s: unable to get AEMIF clock\n", __func__);
- else
+ if (!WARN(IS_ERR(aemif), "unable to get AEMIF clock\n"))
clk_prepare_enable(aemif);
platform_add_devices(davinci_evm_devices,