Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757399Ab0LTM2f (ORCPT ); Mon, 20 Dec 2010 07:28:35 -0500 Received: from opensource.wolfsonmicro.com ([80.75.67.52]:55401 "EHLO opensource2.wolfsonmicro.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755491Ab0LTM2d (ORCPT ); Mon, 20 Dec 2010 07:28:33 -0500 From: Mark Brown To: Samuel Ortiz , Linus Walleij , Arun Murthy Cc: linux-next@vger.kernel.org, Stephen Rothwell , linux-kernel@vger.kernel.org, Mark Brown Subject: [PATCH] misc: Make AB8500_PWM driver depend on U8500 due to PWM breakage Date: Mon, 20 Dec 2010 12:28:11 +0000 Message-Id: <1292848091-29959-1-git-send-email-broonie@opensource.wolfsonmicro.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <20101220192121.47767525.sfr@canb.auug.org.au> References: <20101220192121.47767525.sfr@canb.auug.org.au> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1396 Lines: 40 Since we don't have a PWM API every PWM driver ends up exporting its own version and we need to limit the platforms we try to build them on in order to avoid multiple definitions. As the AB8500 is normally a companion chip for the U8500 CPU depend on that architecture. Previously the driver was relying on the AB8500 core only being built on U8500 but this did not give us build coverage of any of the other functions for the device. Signed-off-by: Mark Brown --- Here's a better way of solving the problem, it means we can build the MFD and all the other functions on other platforms and still exclude the problematic PWM driver. drivers/misc/Kconfig | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index 4d073f1..736004d 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig @@ -64,7 +64,7 @@ config ATMEL_PWM config AB8500_PWM bool "AB8500 PWM support" - depends on AB8500_CORE + depends on AB8500_CORE && ARCH_U8500 select HAVE_PWM help This driver exports functions to enable/disble/config/free Pulse -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/