]> Pileus Git - ~andy/linux/commit
ARM: OMAP: AM35xx: remove redunant cpu_is checks for AM3505
authorKevin Hilman <khilman@ti.com>
Mon, 30 Apr 2012 23:37:09 +0000 (16:37 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 10 May 2012 16:39:41 +0000 (09:39 -0700)
commit3410773013432aced860f6f12def4fe9da517167
treec6339666499567c444915e5d0d7bcb33ee97483b
parent640ec79d6d8c10ceb254c269a1f7fd9cb47ea655
ARM: OMAP: AM35xx: remove redunant cpu_is checks for AM3505

There are several checks for AM35x devices done using

      if (cpu_is_omap3517() || cpu_is_omap3505())

However, since the 3505 is just a 3517 without an SGX, the 3505 check
is redundant because cpu_is_omap3517() will always be true whenever
cpu_is_omap3505() is true.  From <plat/cpu.h>:

 #define cpu_is_omap3505() (cpu_is_omap3517() && !omap3_has_sgx())

Therefore, remove the redunant 3505 checks.  This helps move towards
removal of SoC detection that depends on specific IP detection.

Acked-by: Vaibhav Hiremath <hvaibhav@ti.com>
Tested-by: Vaibhav Hiremath <hvaibhav@ti.com>
Tested-by: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/hsmmc.c
arch/arm/mach-omap2/usb-musb.c
arch/arm/mach-omap2/voltagedomains3xxx_data.c