Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Antony Pavlov <antonynpavlov@gmail.com>
To: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org, Antony Pavlov <antonynpavlov@gmail.com>
Subject: [PATCH] MIPS: Loongson: Kconfig: add MACH_LOONGSON dependency
Date: Thu, 17 Feb 2011 12:55:44 +0300	[thread overview]
Message-ID: <1297936544-24369-1-git-send-email-antonynpavlov@gmail.com> (raw)

The options LOONGSON_SUSPEND, LOONGSON_UART_BASE et al. don't depend
on MACH_LOONGSON option.
So my configuration file (.config) for MIPS Malta board contains

 # CONFIG_MACH_LOONGSON is not set
 CONFIG_MIPS_MALTA=y

 ...

 CONFIG_LOONGSON_UART_BASE=y

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
 arch/mips/loongson/Kconfig |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/mips/loongson/Kconfig b/arch/mips/loongson/Kconfig
index 6e1b77f..4f2cf08 100644
--- a/arch/mips/loongson/Kconfig
+++ b/arch/mips/loongson/Kconfig
@@ -61,6 +61,7 @@ endchoice
 
 config CS5536
 	bool
+	depends on MACH_LOONGSON
 
 config CS5536_MFGPT
 	bool "CS5536 MFGPT Timer"
@@ -77,13 +78,14 @@ config CS5536_MFGPT
 config LOONGSON_SUSPEND
 	bool
 	default y
-	depends on CPU_SUPPORTS_CPUFREQ && SUSPEND
+	depends on MACH_LOONGSON && CPU_SUPPORTS_CPUFREQ && SUSPEND
 
 config LOONGSON_UART_BASE
 	bool
 	default y
-	depends on EARLY_PRINTK || SERIAL_8250
+	depends on MACH_LOONGSON && (EARLY_PRINTK || SERIAL_8250)
 
 config LOONGSON_MC146818
 	bool
 	default n
+	depends on MACH_LOONGSON
-- 
1.7.1

             reply	other threads:[~2011-02-17  9:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-17  9:55 Antony Pavlov [this message]
2011-02-17 11:38 ` [PATCH] MIPS: Loongson: Kconfig: add MACH_LOONGSON dependency Ralf Baechle
  -- strict thread matches above, loose matches on Subject: below --
2011-02-17  8:26 Antony Pavlov
2011-02-17  9:46 ` Антон Павлов

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=1297936544-24369-1-git-send-email-antonynpavlov@gmail.com \
    --to=antonynpavlov@gmail.com \
    --cc=linux-mips@linux-mips.org \
    --cc=ralf@linux-mips.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