From: Nobuhiro Iwamatsu Date: Fri, 28 Mar 2014 02:12:49 +0000 (+0900) Subject: arm: rmobile: Add 1 to value of the CPU revision in rmobile_get_cpu_rev_integer() X-Git-Tag: v2014.07-rc2~9^2~2^2~14 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=commitdiff_plain;h=210f7b2d2601445c56e2528da5195942ee9965d2 arm: rmobile: Add 1 to value of the CPU revision in rmobile_get_cpu_rev_integer() Value that can be obtained in the rmobile_get_cpu_rev_integer() starts at 0. However, revisions to start from 1, which adds 1. Signed-off-by: Nobuhiro Iwamatsu Signed-off-by: Nobuhiro Iwamatsu --- diff --git a/arch/arm/cpu/armv7/rmobile/cpu_info-rcar.c b/arch/arm/cpu/armv7/rmobile/cpu_info-rcar.c index 0289ece2f4..65e89aa250 100644 --- a/arch/arm/cpu/armv7/rmobile/cpu_info-rcar.c +++ b/arch/arm/cpu/armv7/rmobile/cpu_info-rcar.c @@ -17,5 +17,5 @@ u32 rmobile_get_cpu_type(void) u32 rmobile_get_cpu_rev_integer(void) { - return (readl(PRR) & 0x000000F0) >> 4; + return ((readl(PRR) & 0x000000F0) >> 4) + 1; }