From: Adrian Bunk drivers/net/tlan.c compiles with CONFIG_PCI=n only with a warning and due to the dead code elimination of gcc. Additionally, this fixes the only compile error I found with CONFIG_PCI=n and the gcc -Werror-implicit-function-declaration flag on i386. Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton --- drivers/net/tlan.c | 2 ++ 1 files changed, 2 insertions(+) diff -puN drivers/net/tlan.c~drivers-net-tlanc-ifdef-config_pci-the-pci-specific-code drivers/net/tlan.c --- devel/drivers/net/tlan.c~drivers-net-tlanc-ifdef-config_pci-the-pci-specific-code 2006-02-10 01:59:11.000000000 -0800 +++ devel-akpm/drivers/net/tlan.c 2006-02-10 01:59:11.000000000 -0800 @@ -536,6 +536,7 @@ static int __devinit TLan_probe1(struct u16 device_id; int reg, rc = -ENODEV; +#ifdef CONFIG_PCI if (pdev) { rc = pci_enable_device(pdev); if (rc) @@ -547,6 +548,7 @@ static int __devinit TLan_probe1(struct goto err_out; } } +#endif /* CONFIG_PCI */ dev = alloc_etherdev(sizeof(TLanPrivateInfo)); if (dev == NULL) { _