mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-12 00:30:16 +02:00
ramips: rt288x: don't register the PCI controller on each board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30574 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
013dc5a5d6
commit
d81767c119
@ -66,4 +66,10 @@ static inline u32 rt288x_memc_rr(unsigned reg)
|
|||||||
|
|
||||||
void rt288x_gpio_init(u32 mode);
|
void rt288x_gpio_init(u32 mode);
|
||||||
|
|
||||||
|
#ifdef CONFIG_PCI
|
||||||
|
int rt288x_register_pci(void);
|
||||||
|
#else
|
||||||
|
static inline int rt288x_register_pci(void) { return 0; }
|
||||||
|
#endif /* CONFIG_PCI */
|
||||||
|
|
||||||
#endif /* _RT228X_H_ */
|
#endif /* _RT228X_H_ */
|
||||||
|
@ -210,7 +210,7 @@ int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
|
|||||||
return irq;
|
return irq;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __init rt2880_pci_init(void)
|
int __init rt288x_register_pci(void)
|
||||||
{
|
{
|
||||||
void __iomem *io_map_base;
|
void __iomem *io_map_base;
|
||||||
int i;
|
int i;
|
||||||
@ -248,5 +248,3 @@ int pcibios_plat_dev_init(struct pci_dev *dev)
|
|||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
arch_initcall(rt2880_pci_init);
|
|
||||||
|
@ -101,6 +101,7 @@ static void __init rt_v11st_fe_init(void)
|
|||||||
rt288x_register_ethernet();
|
rt288x_register_ethernet();
|
||||||
|
|
||||||
rt288x_register_wdt();
|
rt288x_register_wdt();
|
||||||
|
rt288x_register_pci();
|
||||||
}
|
}
|
||||||
|
|
||||||
MIPS_MACHINE(RAMIPS_MACH_V11ST_FE, "V11ST-FE", "Ralink V11ST-FE", rt_v11st_fe_init);
|
MIPS_MACHINE(RAMIPS_MACH_V11ST_FE, "V11ST-FE", "Ralink V11ST-FE", rt_v11st_fe_init);
|
||||||
|
Loading…
Reference in New Issue
Block a user