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 <bunk@stusta.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
u16 device_id;
int reg, rc = -ENODEV;
u16 device_id;
int reg, rc = -ENODEV;
if (pdev) {
rc = pci_enable_device(pdev);
if (rc)
if (pdev) {
rc = pci_enable_device(pdev);
if (rc)
dev = alloc_etherdev(sizeof(TLanPrivateInfo));
if (dev == NULL) {
dev = alloc_etherdev(sizeof(TLanPrivateInfo));
if (dev == NULL) {