linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: eric.y.miao@gmail.com (Eric Miao)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] SA1100: add processor check to sa1110-cpufreq driver
Date: Thu, 22 Apr 2010 06:11:35 +0800	[thread overview]
Message-ID: <x2rf17812d71004211511x5535667di678766abb3735cfd@mail.gmail.com> (raw)
In-Reply-To: <1271875749-2891-3-git-send-email-mad_soft@inbox.ru>

On Thu, Apr 22, 2010 at 2:49 AM, Dmitry Artamonow <mad_soft@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@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
>

  reply	other threads:[~2010-04-21 22:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-21 18:49 [PATCH 0/2] Couple of SA11x0 cpufreq fixes Dmitry Artamonow
2010-04-21 18:49 ` [PATCH 1/2] SA1100: fix wrong CPU type for h3100 and h3600 Dmitry Artamonow
2010-04-21 22:10   ` Eric Miao
2010-04-22  9:27   ` Kristoffer Ericson
2010-04-21 18:49 ` [PATCH 2/2] SA1100: add processor check to sa1110-cpufreq driver Dmitry Artamonow
2010-04-21 22:11   ` Eric Miao [this message]
2010-04-22  9:26   ` Kristoffer Ericson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=x2rf17812d71004211511x5535667di678766abb3735cfd@mail.gmail.com \
    --to=eric.y.miao@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).