From: Mark A. Greer Date: Fri, 21 Dec 2012 16:28:11 +0000 (-0700) Subject: ARM: OMAP2+: Remove unnecessary message when no AES IP is present X-Git-Tag: v3.10-rc1~123^2~16^2^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=77e2fd8465b8297fc3a1b01148714fa421b5c0c8;p=profile%2Fivi%2Fkernel-x86-ivi.git ARM: OMAP2+: Remove unnecessary message when no AES IP is present Remove the error message that prints when there is no AES IP present to make it consistent with all the other IPs. CC: Paul Walmsley Signed-off-by: Mark A. Greer Signed-off-by: Paul Walmsley --- diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 19bc1c1..ef4ac53 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c @@ -519,19 +519,15 @@ static void __init omap_init_sham(void) static void __init omap_init_aes(void) { - if (cpu_is_omap24xx() || cpu_is_omap34xx()) { - struct omap_hwmod *oh; - struct platform_device *pdev; - - oh = omap_hwmod_lookup("aes"); - if (!oh) - return; - - pdev = omap_device_build("omap-aes", -1, oh, NULL, 0); - WARN(IS_ERR(pdev), "Can't build omap_device for omap-aes\n"); - } else { - pr_err("%s: platform not supported\n", __func__); - } + struct omap_hwmod *oh; + struct platform_device *pdev; + + oh = omap_hwmod_lookup("aes"); + if (!oh) + return; + + pdev = omap_device_build("omap-aes", -1, oh, NULL, 0); + WARN(IS_ERR(pdev), "Can't build omap_device for omap-aes\n"); } /*-------------------------------------------------------------------------*/