lkml.org 
[lkml]   [2005]   [Dec]   [17]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateSat, 17 Dec 2005 15:10:49 +0100
FromAdrian Bunk <>
Subject[2.6 patch] on sparc{,64}, RTC must depend on PCI
On Fri, Dec 16, 2005 at 07:10:05PM -0500, Gerhard Mack wrote:
> 
> I always forget that for some reason.
> If I disable CONFIG_RTC it compiles cleanly.

That's expected since this is the driver that breaks the build.

The patch below adds the dependency of CONFIG_RTC on CONFIG_PCI on the 
sparc architecture.

> 	Gerhard

cu
Adrian

BTW: @sparc maintainers:
     Is there any reason against introducing a SPARC Kconfig symbol
     that is set on both the sparc and sparc64 architectures?


<--  snip  -->


On sparc and sparc64, the rtc driver doesn't compile with PCI support 
disabled.


Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.14.4/drivers/char/Kconfig.old	2005-12-17 15:03:06.000000000 +0100
+++ linux-2.6.14.4/drivers/char/Kconfig	2005-12-17 15:03:33.000000000 +0100
@@ -687,7 +687,7 @@
 
 config RTC
 	tristate "Enhanced Real Time Clock Support"
-	depends on !PPC32 && !PARISC && !IA64 && !M68K
+	depends on !PPC32 && !PARISC && !IA64 && !M68K && (!(SPARC32 || SPARC64) || PCI)
 	---help---
 	  If you say Y here and create a character special file /dev/rtc with
 	  major number 10 and minor number 135 using mknod ("man mknod"), you
-
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/

\
 
 \ /
  Last update: 2005-12-17 15:14    [from the cache]
©2003-2008