ARM: 6076/1: SA1100: add processor check to sa1110-cpufreq driver
authorDmitry Artamonow <[email protected]>
Fri, 30 Apr 2010 20:31:36 +0000 (21:31 +0100)
committerRussell King <[email protected]>
Sat, 1 May 2010 10:32:59 +0000 (11:32 +0100)
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 <[email protected]>
Acked-by: Eric Miao <[email protected]>
Acked-by: Kristoffer Ericson <[email protected]>
Signed-off-by: Russell King <[email protected]>
arch/arm/mach-sa1100/cpu-sa1110.c

index 63b32b68b296969e73638e2e370bcc7322049ac7..7252874d328b59eb808110351aabeff2e4a9c11d 100644 (file)
@@ -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";