mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
ramips: remove unneccesary ifdefs from the rt288x pci code
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17862 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -5,8 +5,6 @@
|
|||||||
#include <asm/mach-ralink/rt288x.h>
|
#include <asm/mach-ralink/rt288x.h>
|
||||||
#include <asm/mach-ralink/rt288x_pci.h>
|
#include <asm/mach-ralink/rt288x_pci.h>
|
||||||
|
|
||||||
#ifdef CONFIG_PCI
|
|
||||||
|
|
||||||
#define PCI_ACCESS_READ 0
|
#define PCI_ACCESS_READ 0
|
||||||
#define PCI_ACCESS_WRITE 1
|
#define PCI_ACCESS_WRITE 1
|
||||||
|
|
||||||
@@ -62,4 +60,3 @@ pci_config_write(struct pci_bus *bus, unsigned int devfn,
|
|||||||
return PCIBIOS_DEVICE_NOT_FOUND;
|
return PCIBIOS_DEVICE_NOT_FOUND;
|
||||||
return PCIBIOS_SUCCESSFUL;
|
return PCIBIOS_SUCCESSFUL;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|||||||
@@ -6,8 +6,6 @@
|
|||||||
#include <asm/mach-ralink/rt288x.h>
|
#include <asm/mach-ralink/rt288x.h>
|
||||||
#include <asm/mach-ralink/rt288x_pci.h>
|
#include <asm/mach-ralink/rt288x_pci.h>
|
||||||
|
|
||||||
#ifdef CONFIG_PCI
|
|
||||||
|
|
||||||
extern int pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val);
|
extern int pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val);
|
||||||
extern int pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val);
|
extern int pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val);
|
||||||
|
|
||||||
@@ -126,5 +124,3 @@ struct pci_fixup pcibios_fixups[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
arch_initcall(init_rt2880pci);
|
arch_initcall(init_rt2880pci);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|||||||
Reference in New Issue
Block a user