From patchwork Fri Oct 4 12:35:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 2988501 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5911BBFF0B for ; Fri, 4 Oct 2013 12:35:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 18C9420320 for ; Fri, 4 Oct 2013 12:35:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D8F012030D for ; Fri, 4 Oct 2013 12:35:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753525Ab3JDMfp (ORCPT ); Fri, 4 Oct 2013 08:35:45 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:15412 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753131Ab3JDMfo (ORCPT ); Fri, 4 Oct 2013 08:35:44 -0400 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MU500HP89MZ8AC0@mailout3.samsung.com>; Fri, 04 Oct 2013 21:35:23 +0900 (KST) X-AuditID: cbfee61b-b7f776d0000016c8-a8-524eb60b1153 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 60.37.05832.B06BE425; Fri, 04 Oct 2013 21:35:23 +0900 (KST) Received: from amdc1032.localnet ([106.116.147.136]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MU5002849MYB430@mmp1.samsung.com>; Fri, 04 Oct 2013 21:35:23 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: Eduardo Valentin , Zhang Rui Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Kyungmin Park Subject: [PATCH] thermal: offer TI thermal support only when ARCH_OMAP2PLUS is defined Date: Fri, 04 Oct 2013 14:35:19 +0200 Message-id: <3702969.8rn3SOscJE@amdc1032> User-Agent: KMail/4.8.4 (Linux/3.2.0-52-generic-pae; KDE/4.8.5; i686; ; ) MIME-version: 1.0 Content-transfer-encoding: 7Bit Content-type: text/plain; charset=us-ascii X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrCLMWRmVeSWpSXmKPExsVy+t9jAV3ubX5BBj96zSzW7P/JZHG26Q27 xeVdc9gsPvceYbR48rCPzYHVY/Gel0wefVtWMXocv7GdyePzJrkAligum5TUnMyy1CJ9uwSu jOPfHjMXPGev2PLvLmMD43G2LkZODgkBE4ndjY8YIWwxiQv31gPFuTiEBBYxSnQ1roRyWpgk fq5oZwapYhOwkpjYvgqog4NDRMBfom2NBkiYWSBdYuKa2+wgtrBAhMSFSUeZQGwWAVWJmzsu gNm8ApoSx1d9BVssKuAp8WnSUmaIuKDEj8n3WCDmyEvs2z+VFcLWkli/8zjTBEa+WUjKZiEp m4WkbAEj8ypG0dSC5ILipPRcI73ixNzi0rx0veT83E2M4LB8Jr2DcVWDxSFGAQ5GJR7eDcW+ QUKsiWXFlbmHGCU4mJVEeI9P8gsS4k1JrKxKLcqPLyrNSS0+xCjNwaIkznuw1TpQSCA9sSQ1 OzW1ILUIJsvEwSnVwOjb0cUaKnWzOCbhhf35Pt1MVjkOYyHNmMXJN/LaE5XMnTnmCGxsWxZT UcK55liWu8Xrh86Sp27+cUuYJNRwc0a2Za/smT9lUwTePki9oXJGtLVOf4Nipx5rWecqAZ6L TRNelDFc7zwRfm0Ty609rpcurNrzS+e2QELUtR1TZXZqGDTla8exK7EUZyQaajEXFScCAMFS DtJHAgAA Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 Menu for Texas Instruments thermal support is visible on all platforms and TI_SOC_THERMAL + TI_THERMAL config options can be selected also on EXYNOS platform (on which ARCH_HAS_BANDGAP config option is selected by SoCs config options to fulfill EXYNOS_THERMAL config option dependency). Thus the code which is never used can be build. Fix it by making TI menu dependent on ARCH_OMAP2PLUS config option. Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Kyungmin Park --- drivers/thermal/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index 57e06a9..a709c63 100644 --- a/drivers/thermal/Kconfig +++ b/drivers/thermal/Kconfig @@ -193,6 +193,7 @@ config X86_PKG_TEMP_THERMAL notification methods. menu "Texas Instruments thermal drivers" +depends on ARCH_OMAP2PLUS source "drivers/thermal/ti-soc-thermal/Kconfig" endmenu