am33xx_generic: convert from switch to if/else
The function am33xx_get_cpu_rev may be called before barebox_arm_entry(),
so we need to avoid switch statements. One example is the BeagleBone,
where we use this function to differenciate between the white and black
variants.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 363843e commit 45b1e9c274a5cd0f339fcb8bf383e0f340fae584
@Jan Luebbe Jan Luebbe authored on 2 Oct 2013
Sascha Hauer committed on 6 Oct 2013
Showing 1 changed file
View
arch/arm/mach-omap/am33xx_generic.c