[PATCH 2/2] SA1100: add processor check to sa1110-cpufreq driver
Kristoffer Ericson
kristoffer.ericson at gmail.com
Thu Apr 22 05:26:29 EDT 2010
Acked-by: Kristoffer Ericson <kristoffer.ericson at gmail.com>
On Wed, 21 Apr 2010 22:49:09 +0400
Dmitry Artamonow <mad_soft at inbox.ru> wrote:
> Just to make sure that this driver won't run on StrongArm SA1100
> when both SA1100 and SA1110 cpufreq drivers are built in (usually
> in multimachine config). SA1100 driver already has similar check.
>
> Signed-off-by: Dmitry Artamonow <mad_soft at inbox.ru>
> ---
> arch/arm/mach-sa1100/cpu-sa1110.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-sa1100/cpu-sa1110.c b/arch/arm/mach-sa1100/cpu-sa1110.c
> index 63b32b6..7252874 100644
> --- a/arch/arm/mach-sa1100/cpu-sa1110.c
> +++ b/arch/arm/mach-sa1100/cpu-sa1110.c
> @@ -363,6 +363,9 @@ static int __init sa1110_clk_init(void)
> struct sdram_params *sdram;
> const char *name = sdram_name;
>
> + if (!cpu_is_sa1110())
> + return -ENODEV;
> +
> if (!name[0]) {
> if (machine_is_assabet())
> name = "TC59SM716-CL3";
> --
> 1.7.0.4
>
--
Kristoffer Ericson <kristoffer.ericson at gmail.com>
More information about the linux-arm-kernel
mailing list