OSDN Git Service

OMAP3: Fix a cpu type check problem
authorstanley.miao <stanley.miao@windriver.com>
Mon, 16 Aug 2010 06:21:19 +0000 (09:21 +0300)
committerTony Lindgren <tony@atomide.com>
Mon, 16 Aug 2010 06:21:19 +0000 (09:21 +0300)
commit8098bb0d8c7fe4ace7d13274c85a149503eee114
tree3d350f5cdb8c6abddfacb9584caafcee2c8694f3
parent77c0870ca515667b77750b397008d68a17fad9d8
OMAP3: Fix a cpu type check problem

cpu_is_omap3517() and cpu_is_omap3505() are the subgroups of cpu_is_omap34xx(),
so we should check cpu_is_omap3517() and cpu_is_omap3505() first, then check
cpu_is_omap34xx().

Otherwise, All AM35XX (Sitara) clocks do not get registered and device drivers
(ti_hecc, etc...) that depend on those clocks are failing to get the clock and
end up with non working device.

Signed-off-by: Stanley.Miao <stanley.miao@windriver.com>
Tested-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/clock3xxx_data.c