Module: xenomai-head
Branch: master
Commit: ec62f82ff1b09ae8f1f14c46002e4958afc7c6fe
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=ec62f82ff1b09ae8f1f14c46002e4958afc7c6fe

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Sat Jan  8 01:05:02 2011 +0100

16550A: Disable PCI configuration option for platforms without PCI

---

 ksrc/drivers/serial/16550A_pci.h |    3 +--
 ksrc/drivers/serial/Kconfig      |    2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/ksrc/drivers/serial/16550A_pci.h b/ksrc/drivers/serial/16550A_pci.h
index 2c71a5e..4cfc296 100644
--- a/ksrc/drivers/serial/16550A_pci.h
+++ b/ksrc/drivers/serial/16550A_pci.h
@@ -17,8 +17,7 @@
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) && defined(CONFIG_PCI) && \
-       defined(CONFIG_XENO_DRIVERS_16550A_PCI)
+#if defined(CONFIG_XENO_DRIVERS_16550A_PCI)
 
 #include <linux/pci.h>
 
diff --git a/ksrc/drivers/serial/Kconfig b/ksrc/drivers/serial/Kconfig
index d3c100e..1c76820 100644
--- a/ksrc/drivers/serial/Kconfig
+++ b/ksrc/drivers/serial/Kconfig
@@ -40,7 +40,7 @@ config XENO_DRIVERS_16550A_ANY
 endchoice
 
 config XENO_DRIVERS_16550A_PCI
-       depends on XENO_DRIVERS_16550A_PIO || XENO_DRIVERS_16550A_ANY
+       depends on PCI && (XENO_DRIVERS_16550A_PIO || XENO_DRIVERS_16550A_ANY)
        bool "PCI board support"
        default n
        help


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to