[2.6 patch] on sparc{,64}, RTC must depend on PCI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>

--- 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux