]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
rtc: rtc-s3c: Add extra option to include RTC for Samsung SoCs
authorAtul Dahiya <atul.dahiya@samsung.com>
Tue, 20 Jul 2010 11:08:49 +0000 (16:38 +0530)
committerKukjin Kim <kgene.kim@samsung.com>
Thu, 5 Aug 2010 09:32:51 +0000 (18:32 +0900)
This patch adds HAVE_S3C_RTC to control inclusion of RTC driver for Samsung
SoCs. This option will help to include the driver only for the necessary
machines and not for any given arch.

Signed-off-by: Atul Dahiya <atul.dahiya@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Cc: Ben Dooks <ben-linux@fluff.org>
drivers/rtc/Kconfig

index 10ba12c8c5e004a044c59ec7a77a91f58cf8f61e..c43732ff1800fee154fafe9ab3cc550df25626af 100644 (file)
@@ -645,9 +645,16 @@ config RTC_DRV_OMAP
          DA8xx/OMAP-L13x chips.  This driver can also be built as a
          module called rtc-omap.
 
+config HAVE_S3C_RTC
+       bool
+       help
+         This will include RTC support for Samsung SoCs. If
+         you want to include RTC support for any machine, kindly
+         select this in the respective mach-XXXX/Kconfig file.
+
 config RTC_DRV_S3C
        tristate "Samsung S3C series SoC RTC"
-       depends on ARCH_S3C2410 || ARCH_S3C64XX
+       depends on ARCH_S3C2410 || ARCH_S3C64XX || HAVE_S3C_RTC
        help
          RTC (Realtime Clock) driver for the clock inbuilt into the
          Samsung S3C24XX series of SoCs. This can provide periodic