Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/booke/pci pq3pci_config_addr_read is only u...



details:   https://anonhg.NetBSD.org/src/rev/83f4497e1c91
branches:  trunk
changeset: 331069:83f4497e1c91
user:      joerg <joerg%NetBSD.org@localhost>
date:      Wed Jul 30 10:50:54 2014 +0000

description:
pq3pci_config_addr_read is only used in a #if 0 block, so hide it under
the same condition.

diffstat:

 sys/arch/powerpc/booke/pci/pq3pci.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 7d51fd8e88cd -r 83f4497e1c91 sys/arch/powerpc/booke/pci/pq3pci.c
--- a/sys/arch/powerpc/booke/pci/pq3pci.c       Wed Jul 30 10:04:25 2014 +0000
+++ b/sys/arch/powerpc/booke/pci/pq3pci.c       Wed Jul 30 10:50:54 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pq3pci.c,v 1.16 2014/03/29 19:28:29 christos Exp $     */
+/*     $NetBSD: pq3pci.c,v 1.17 2014/07/30 10:50:54 joerg Exp $        */
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -44,7 +44,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pq3pci.c,v 1.16 2014/03/29 19:28:29 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pq3pci.c,v 1.17 2014/07/30 10:50:54 joerg Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -998,6 +998,7 @@
        return (bus << 16) | (dev << 11) | (func << 8);
 }
 
+#if 0
 static inline pcitag_t
 pq3pci_config_addr_read(pci_chipset_tag_t pc)
 {
@@ -1006,6 +1007,7 @@
         __asm volatile("mbar\n\tmsync");
        return v;
 }
+#endif
 
 static inline void
 pq3pci_config_addr_write(pci_chipset_tag_t pc, pcitag_t v)



Home | Main Index | Thread Index | Old Index