[patch] 2.4.21rc6-ac1: fix pc300_drv.c .text.exit

Adrian Bunk (bunk@fs.tum.de)
Tue, 3 Jun 2003 17:28:48 +0200


Trying to compile pc300_drv.c statically into a kernel without hotplug
support results in a .text.exit error at final linking.

The problem is that the pointer to the __devexit cpc_remove_one didn't
use __devexit_p.

The patch below fixes this issue, besides it does a few small cleanups
to the struct.

Please apply
Adrian

--- linux-2.4.21-rc6-ac1-full-nohotplug/drivers/net/wan/pc300_drv.c.old 2003-06-02 22:37:04.000000000 +0200
+++ linux-2.4.21-rc6-ac1-full-nohotplug/drivers/net/wan/pc300_drv.c 2003-06-02 22:42:46.000000000 +0200
@@ -3461,12 +3461,10 @@
}

static struct pci_driver cpc_driver = {
- name:"pc300",
- id_table:cpc_pci_dev_id,
- probe:cpc_init_one,
- remove:cpc_remove_one,
- suspend:NULL,
- resume:NULL,
+ .name = "pc300",
+ .id_table = cpc_pci_dev_id,
+ .probe = cpc_init_one,
+ .remove = __devexit_p(cpc_remove_one),
};

static int __init cpc_init(void)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/