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>
This commit is contained in:
committed by
Sekhar Nori
parent
1b50b0c1ce
commit
5bcd927233
@@ -384,9 +384,7 @@ static __init void dm355_evm_init(void)
|
|||||||
dm355evm_dm9000_rsrc[2].start = gpio_to_irq(1);
|
dm355evm_dm9000_rsrc[2].start = gpio_to_irq(1);
|
||||||
|
|
||||||
aemif = clk_get(&dm355evm_dm9000.dev, "aemif");
|
aemif = clk_get(&dm355evm_dm9000.dev, "aemif");
|
||||||
if (IS_ERR(aemif))
|
if (!WARN(IS_ERR(aemif), "unable to get AEMIF clock\n"))
|
||||||
WARN("%s: unable to get AEMIF clock\n", __func__);
|
|
||||||
else
|
|
||||||
clk_prepare_enable(aemif);
|
clk_prepare_enable(aemif);
|
||||||
|
|
||||||
platform_add_devices(davinci_evm_devices,
|
platform_add_devices(davinci_evm_devices,
|
||||||
|
|||||||
@@ -242,9 +242,7 @@ static __init void dm355_leopard_init(void)
|
|||||||
dm355leopard_dm9000_rsrc[2].start = gpio_to_irq(9);
|
dm355leopard_dm9000_rsrc[2].start = gpio_to_irq(9);
|
||||||
|
|
||||||
aemif = clk_get(&dm355leopard_dm9000.dev, "aemif");
|
aemif = clk_get(&dm355leopard_dm9000.dev, "aemif");
|
||||||
if (IS_ERR(aemif))
|
if (!WARN(IS_ERR(aemif), "unable to get AEMIF clock\n"))
|
||||||
WARN("%s: unable to get AEMIF clock\n", __func__);
|
|
||||||
else
|
|
||||||
clk_prepare_enable(aemif);
|
clk_prepare_enable(aemif);
|
||||||
|
|
||||||
platform_add_devices(davinci_leopard_devices,
|
platform_add_devices(davinci_leopard_devices,
|
||||||
|
|||||||
Reference in New Issue
Block a user