[PATCH 2/2] SA1100: add processor check to sa1110-cpufreq driver
Eric Miao
eric.y.miao at gmail.com
Wed Apr 21 18:11:35 EDT 2010
On Thu, Apr 22, 2010 at 2:49 AM, 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>
Looks correct to me as well.
> ---
> 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
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>
More information about the linux-arm-kernel
mailing list