diff options
Diffstat (limited to 'arch/arm/mach-imx/cpu-imx5.c')
-rw-r--r-- | arch/arm/mach-imx/cpu-imx5.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/arm/mach-imx/cpu-imx5.c b/arch/arm/mach-imx/cpu-imx5.c index 3403bac94a31..4f2d1c772f85 100644 --- a/arch/arm/mach-imx/cpu-imx5.c +++ b/arch/arm/mach-imx/cpu-imx5.c | |||
@@ -60,13 +60,9 @@ static int get_mx51_srev(void) | |||
60 | /* | 60 | /* |
61 | * Returns: | 61 | * Returns: |
62 | * the silicon revision of the cpu | 62 | * the silicon revision of the cpu |
63 | * -EINVAL - not a mx51 | ||
64 | */ | 63 | */ |
65 | int mx51_revision(void) | 64 | int mx51_revision(void) |
66 | { | 65 | { |
67 | if (!cpu_is_mx51()) | ||
68 | return -EINVAL; | ||
69 | |||
70 | if (mx5_cpu_rev == -1) | 66 | if (mx5_cpu_rev == -1) |
71 | mx5_cpu_rev = get_mx51_srev(); | 67 | mx5_cpu_rev = get_mx51_srev(); |
72 | 68 | ||
@@ -112,13 +108,9 @@ static int get_mx53_srev(void) | |||
112 | /* | 108 | /* |
113 | * Returns: | 109 | * Returns: |
114 | * the silicon revision of the cpu | 110 | * the silicon revision of the cpu |
115 | * -EINVAL - not a mx53 | ||
116 | */ | 111 | */ |
117 | int mx53_revision(void) | 112 | int mx53_revision(void) |
118 | { | 113 | { |
119 | if (!cpu_is_mx53()) | ||
120 | return -EINVAL; | ||
121 | |||
122 | if (mx5_cpu_rev == -1) | 114 | if (mx5_cpu_rev == -1) |
123 | mx5_cpu_rev = get_mx53_srev(); | 115 | mx5_cpu_rev = get_mx53_srev(); |
124 | 116 | ||