From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752553Ab3BTWm3 (ORCPT ); Wed, 20 Feb 2013 17:42:29 -0500 Received: from mail2.gnudd.com ([213.203.150.91]:33964 "EHLO mail.gnudd.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751485Ab3BTWm2 (ORCPT ); Wed, 20 Feb 2013 17:42:28 -0500 Date: Wed, 20 Feb 2013 23:41:04 +0100 From: Alessandro Rubini To: linux-kernel@vger.kernel.org Cc: Giancarlo Asnaghi , Davide Ciminaghi , wim@iguana.be, linus.walleij@linaro.org, viresh.kumar@linaro.org, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org Subject: [PATCH V6 2/5] watchdog: sp805_wdt depends on ARM Message-ID: <1e8486a5ebe77094a970b8a6d72a1cc5a18e2e52.1361398612.git.rubini@gnudd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: GnuDD, Device Drivers, Embedded Systems, Courses References: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The SP805 driver is only used by the Spear machines, and uses writel_relaxed, which is not available on all architectures. The dependency from CONFIG_ARM avoids compilation problems under randomconfig when CONFIG_ARM_AMBA is enabled for x86 builds. Signed-off-by: Alessandro Rubini Acked-by: Giancarlo Asnaghi Signed-off-by: Davide Ciminaghi Acked-by: Wim Van Sebroeck Acked-by: Linus Walleij Acked-by: Viresh Kumar Signed-off-by: H. Peter Anvin --- @Wim, Viresh, Linus: I repost this after rebasing, on hpa's suggestion. Viresh's ack: http://lkml.org/lkml/2012/11/23/296 Linus' ack: http://lkml.org/lkml/2012/11/28/259 drivers/watchdog/Kconfig | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index 83ac1f7..e89fc31 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -109,7 +109,7 @@ config WM8350_WATCHDOG config ARM_SP805_WATCHDOG tristate "ARM SP805 Watchdog" - depends on ARM_AMBA + depends on ARM && ARM_AMBA select WATCHDOG_CORE help ARM Primecell SP805 Watchdog timer. This will reboot your system when -- 1.7.7.2