From patchwork Fri Apr 29 22:03:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 1235 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:50:29 -0000 Delivered-To: patches@linaro.org Received: by 10.224.2.73 with SMTP id 9cs200512qai; Fri, 29 Apr 2011 15:05:46 -0700 (PDT) Received: by 10.236.180.10 with SMTP id i10mr6316159yhm.358.1304114745831; Fri, 29 Apr 2011 15:05:45 -0700 (PDT) Received: from e32.co.us.ibm.com (e32.co.us.ibm.com [32.97.110.150]) by mx.google.com with ESMTPS id u65si10207867yhn.245.2011.04.29.15.05.45 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 29 Apr 2011 15:05:45 -0700 (PDT) Received-SPF: pass (google.com: domain of jstultz@us.ibm.com designates 32.97.110.150 as permitted sender) client-ip=32.97.110.150; Authentication-Results: mx.google.com; spf=pass (google.com: domain of jstultz@us.ibm.com designates 32.97.110.150 as permitted sender) smtp.mail=jstultz@us.ibm.com Received: from d03relay05.boulder.ibm.com (d03relay05.boulder.ibm.com [9.17.195.107]) by e32.co.us.ibm.com (8.14.4/8.13.1) with ESMTP id p3TLsWhZ009722; Fri, 29 Apr 2011 15:54:32 -0600 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d03relay05.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p3TM49Rl207836; Fri, 29 Apr 2011 16:04:44 -0600 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p3TM2sBC003718; Fri, 29 Apr 2011 16:02:56 -0600 Received: from kernel.beaverton.ibm.com (kernel.beaverton.ibm.com [9.47.67.96]) by d03av02.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p3TM2rpn003683; Fri, 29 Apr 2011 16:02:54 -0600 Received: by kernel.beaverton.ibm.com (Postfix, from userid 1056) id 73A4B1E7510; Fri, 29 Apr 2011 15:03:20 -0700 (PDT) From: John Stultz To: Thomas Gleixner Cc: John Stultz , Ingo Molnar , Thomas Gleixner Subject: [PATCH 2/2] RTC: Disable CONFIG_RTC_CLASS from being built as a module Date: Fri, 29 Apr 2011 15:03:11 -0700 Message-Id: <1304114591-28668-3-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.7.3.2.146.gca209 In-Reply-To: <1304114591-28668-1-git-send-email-john.stultz@linaro.org> References: <1304114591-28668-1-git-send-email-john.stultz@linaro.org> The RTC subsystem has a number of accessors that are available via include/linux/rtc.h. However many of these interfaces are not available for use if CONFIG_RTC_CLASS=m. So in order to support wider use of the RTC in the kernel, I'm removing the tristate config option for a bool, so that code can easily be conditionalized if the RTC class is present or not. CC: Ingo Molnar CC: Thomas Gleixner Signed-off-by: John Stultz --- drivers/rtc/Kconfig | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index e187887..4289172 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig @@ -3,10 +3,10 @@ # config RTC_LIB - tristate + bool menuconfig RTC_CLASS - tristate "Real Time Clock" + bool "Real Time Clock" default n depends on !S390 select RTC_LIB @@ -15,9 +15,6 @@ menuconfig RTC_CLASS be allowed to plug one or more RTCs to your system. You will probably want to enable one or more of the interfaces below. - This driver can also be built as a module. If so, the module - will be called rtc-core. - if RTC_CLASS config RTC_HCTOSYS