diff options
author | Mark A. Greer <mgreer@animalcreek.com> | 2012-12-21 09:28:11 -0700 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2013-03-30 15:52:05 -0600 |
commit | 77e2fd8465b8297fc3a1b01148714fa421b5c0c8 (patch) | |
tree | 3e593b6dc2037ef5ff3470a1051c705611c8db56 /arch/arm/mach-omap2/devices.c | |
parent | 14ae5564eb9c252319a4dba5aef0a66ad5eaff56 (diff) | |
download | linux-77e2fd8465b8297fc3a1b01148714fa421b5c0c8.tar.bz2 |
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 <paul@pwsan.com>
Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/devices.c')
-rw-r--r-- | arch/arm/mach-omap2/devices.c | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 19bc1c1795f7..ef4ac5385b41 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"); } /*-------------------------------------------------------------------------*/ |