Re: 2.2.2-ac4 does not build...

Alan Cox (alan@lxorguk.ukuu.org.uk)
Fri, 26 Feb 1999 14:50:36 +0000 (GMT)


I think this fixes it

--- drivers/net/3c509.c~ Fri Feb 26 01:55:06 1999
+++ drivers/net/3c509.c Fri Feb 26 13:50:58 1999
@@ -917,12 +917,12 @@
cleanup_module(void)
{
struct device *next_dev;
- struct el3_private *lp = (struct el3_private *)dev->priv;

/* No need to check MOD_IN_USE, as sys_delete_module() checks. */
while (el3_root_dev) {
+ struct el3_private *lp = (struct el3_private *)el3_root_dev->priv;
mca_mark_as_unused(lp->mca_slot);
- next_dev = ((struct el3_private *)el3_root_dev->priv)->next_dev;
+ next_dev = lp->next_dev;
unregister_netdev(el3_root_dev);
release_region(el3_root_dev->base_addr, EL3_IO_EXTENT);
kfree(el3_root_dev);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/