From patchwork Mon Feb 10 01:08:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 3614601 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 863D39F382 for ; Mon, 10 Feb 2014 01:09:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9D21720171 for ; Mon, 10 Feb 2014 01:09:04 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9BAA22016C for ; Mon, 10 Feb 2014 01:09:03 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WCfMp-0005NM-1z; Mon, 10 Feb 2014 01:08:59 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WCfMm-0004hh-EN; Mon, 10 Feb 2014 01:08:56 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WCfMj-0004h2-Hd for linux-arm-kernel@lists.infradead.org; Mon, 10 Feb 2014 01:08:54 +0000 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N0R00FEU9U3XI80@mailout3.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 10 Feb 2014 10:08:28 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id B5.2B.14803.B8628F25; Mon, 10 Feb 2014 10:08:27 +0900 (KST) X-AuditID: cbfee691-b7efc6d0000039d3-25-52f8268b0f10 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 33.A7.29263.B8628F25; Mon, 10 Feb 2014 10:08:27 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N0R0098C9U3VN40@mmp1.samsung.com>; Mon, 10 Feb 2014 10:08:27 +0900 (KST) From: Jingoo Han To: 'Arnd Bergmann' References: <003901cf25fc$73002790$590076b0$%han@samsung.com> In-reply-to: <003901cf25fc$73002790$590076b0$%han@samsung.com> Subject: [PATCH 1/7] ARM: pxa: don't select HAVE_PWM Date: Mon, 10 Feb 2014 10:08:27 +0900 Message-id: <003a01cf25fc$9ac5bbf0$d05133d0$%han@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac8l/GYGhOsBgXmsQoSPhLhnprg0iAAABfEA Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrNIsWRmVeSWpSXmKPExsVy+t8zI91utR9BBteXW1r8nXSM3WJH23E2 i8sLL7FaTPmznMli0+NrrBaXd81hs7h9mdeB3aOluYfN4/evSYweO2fdZfe4c20Pm8fmJfUe fVtWMXp83iQXwB7FZZOSmpNZllqkb5fAlXH58hWmgm3yFT+vnWZpYNwu2cXIySEhYCJx7vl9 RghbTOLCvfVsXYxcHEICyxgl1nTdZoYpmnnyLCNEYhGjxPbfB6GcX4wSLVcms4BUsQmoSXz5 cpgdxBYRUJY4/vIOC0gRs8A3Rolb36aAFQkJ2ErMbdgPVsQpYCcxb+k3VhBbGGhFx9prbCA2 i4CqxL5/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JywJGllWMoqkFyQXFSem5 hnrFibnFpXnpesn5uZsYwenimdQOxpUNFocYBTgYlXh4d/z5HiTEmlhWXJl7iFGCg1lJhPfl XaAQb0piZVVqUX58UWlOavEhxmSgRycyS4km5wNTWV5JvKGxiZmRpZGZhZGJuTlpwkrivAda rQOFBNITS1KzU1MLUotgtjBxcEo1MMYf2/arvDK2tOleWHa4SdeClZWGPZ1/628XJh+TYVWf 7ZbQEbO4id91t49ugupKMZ+DE/c6RTNwcbhGXtaa1TXjvKR8cqxDDMMr7YUdSxm+SzyaUxi4 TW7CxU+/TjEcs60X+xISZVDloZTx2HPxSZWPSQfVwtZPm+KmXncz/Uy/9Y8HBc08SizFGYmG WsxFxYkA+mXhmVsDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140209_200853_822775_9491A05A X-CRM114-Status: UNSURE ( 9.73 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.5 (-------) Cc: 'Eric Miao' , 'Linus Walleij' , 'Jingoo Han' , linux-kernel@vger.kernel.org, 'Russell King - ARM Linux' , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The HAVE_PWM symbol is only for legacy platforms that provide the PWM API without using the generic framework. PXA platforms use the generic PWM framework, after the commit "17b2b47 pwm: Move PXA PWM driver to PWM framework". In the case of "CONFIG_HAVE_PWM=y && CONFIG_PWM=n", PXA platforms make the build errors as below. Thus, selecting HAVE_PWM should be removed from PXA platforms. drivers/built-in.o: In function `lm3630a_pwm_ctrl': drivers/video/backlight/lm3630a_bl.c:168: undefined reference to `pwm_config' drivers/video/backlight/lm3630a_bl.c:172: undefined reference to `pwm_disable' drivers/video/backlight/lm3630a_bl.c:170: undefined reference to `pwm_enable' drivers/built-in.o: In function `lp855x_pwm_ctrl': drivers/video/backlight/lp855x_bl.c:249: undefined reference to `pwm_config' drivers/video/backlight/lp855x_bl.c:253: undefined reference to `pwm_disable' drivers/video/backlight/lp855x_bl.c:251: undefined reference to `pwm_enable' Acked-by: Linus Walleij Cc: Arnd Bergmann Cc: Thierry Reding Signed-off-by: Jingoo Han --- arch/arm/mach-pxa/Kconfig | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/arch/arm/mach-pxa/Kconfig b/arch/arm/mach-pxa/Kconfig index 96100db..b96244c 100644 --- a/arch/arm/mach-pxa/Kconfig +++ b/arch/arm/mach-pxa/Kconfig @@ -7,7 +7,6 @@ comment "Intel/Marvell Dev Platforms (sorted by hardware release time)" config MACH_PXA3XX_DT bool "Support PXA3xx platforms from device tree" select CPU_PXA300 - select HAVE_PWM select POWER_SUPPLY select PXA3xx select USE_OF @@ -23,12 +22,10 @@ config ARCH_LUBBOCK config MACH_MAINSTONE bool "Intel HCDDBBVA0 Development Platform (aka Mainstone)" - select HAVE_PWM select PXA27x config MACH_ZYLONITE bool - select HAVE_PWM select PXA3xx config MACH_ZYLONITE300 @@ -69,7 +66,6 @@ config ARCH_PXA_IDP config ARCH_VIPER bool "Arcom/Eurotech VIPER SBC" select ARCOM_PCMCIA - select HAVE_PWM select I2C_GPIO select ISA select PXA25x @@ -120,7 +116,6 @@ config MACH_CM_X300 bool "CompuLab CM-X300 modules" select CPU_PXA300 select CPU_PXA310 - select HAVE_PWM select PXA3xx config MACH_CAPC7117 @@ -211,7 +206,6 @@ config TRIZEPS_PCMCIA config MACH_LOGICPD_PXA270 bool "LogicPD PXA270 Card Engine Development Platform" - select HAVE_PWM select PXA27x config MACH_PCM027 @@ -222,7 +216,6 @@ config MACH_PCM027 config MACH_PCM990_BASEBOARD bool "PHYTEC PCM-990 development board" depends on MACH_PCM027 - select HAVE_PWM choice prompt "display on pcm990" @@ -246,7 +239,6 @@ config MACH_COLIBRI config MACH_COLIBRI_PXA270_INCOME bool "Income s.r.o. PXA270 SBC" depends on MACH_COLIBRI - select HAVE_PWM select PXA27x config MACH_COLIBRI300 @@ -275,7 +267,6 @@ comment "End-user Products (sorted by vendor name)" config MACH_H4700 bool "HP iPAQ hx4700" - select HAVE_PWM select IWMMXT select PXA27x @@ -289,14 +280,12 @@ config MACH_HIMALAYA config MACH_MAGICIAN bool "Enable HTC Magician Support" - select HAVE_PWM select IWMMXT select PXA27x config MACH_MIOA701 bool "Mitac Mio A701 Support" select GPIO_SYSFS - select HAVE_PWM select IWMMXT select PXA27x help @@ -306,7 +295,6 @@ config MACH_MIOA701 config PXA_EZX bool "Motorola EZX Platform" - select HAVE_PWM select IWMMXT select PXA27x @@ -346,7 +334,6 @@ config MACH_MP900C config ARCH_PXA_PALM bool "PXA based Palm PDAs" - select HAVE_PWM config MACH_PALM27X bool @@ -444,7 +431,6 @@ config MACH_TREO680 config MACH_RAUMFELD_RC bool "Raumfeld Controller" select CPU_PXA300 - select HAVE_PWM select POWER_SUPPLY select PXA3xx @@ -608,7 +594,6 @@ config MACH_E800 config MACH_ZIPIT2 bool "Zipit Z2 Handheld" - select HAVE_PWM select PXA27x endmenu