]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
PCI: UniCore: convert pcibios_set_master() to a non-inlined function
authorMyron Stowe <mstowe@redhat.com>
Fri, 28 Oct 2011 21:48:24 +0000 (15:48 -0600)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 6 Jan 2012 20:10:41 +0000 (12:10 -0800)
This patch converts UniCore's architecture-specific
'pcibios_set_master()' routine to a non-inlined function.  This will
allow follow on patches to create a generic 'pcibios_set_master()'
function using the '__weak' attribute which can be used by all
architectures as a default which, if necessary, can then be over-
ridden by architecture-specific code.

Converting 'pci_bios_set_master()' to a non-inlined function will
allow UniCore's 'pcibios_set_master()' implementation to remain
architecture-specific after the generic version is introduced and
thus, not change current behavior.

No functional change.

Signed-off-by: Myron Stowe <myron.stowe@redhat.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
arch/unicore32/include/asm/pci.h
arch/unicore32/kernel/pci.c

index c5b28b45953582106d0c4086588d5a594c2b00ab..dd3867727c3521138436c1a05bf8bd4b4a976ee4 100644 (file)
 #include <asm-generic/pci.h>
 #include <mach/hardware.h> /* for PCIBIOS_MIN_* */
 
-static inline void pcibios_set_master(struct pci_dev *dev)
-{
-       /* No special bus mastering setup handling */
-}
-
 static inline void pcibios_penalize_isa_irq(int irq, int active)
 {
        /* We don't do dynamic PCI IRQ allocation */
index 4892fbb54ebfd508a4c0738d2df73af2c3bbafae..a8f07fe10cad0e6284c99a6a9155629bf7da9b91 100644 (file)
@@ -309,6 +309,11 @@ char * __devinit pcibios_setup(char *str)
        return str;
 }
 
+void pcibios_set_master(struct pci_dev *dev)
+{
+       /* No special bus mastering setup handling */
+}
+
 /*
  * From arch/i386/kernel/pci-i386.c:
  *