patch-2.4.22 linux-2.4.22/drivers/net/gmac.c

Next file: linux-2.4.22/drivers/net/hamradio/mkiss.c
Previous file: linux-2.4.22/drivers/net/eexpress.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/drivers/net/gmac.c linux-2.4.22/drivers/net/gmac.c
@@ -1622,6 +1622,7 @@
 	gm->of_node = gmac;
 	if (!request_OF_resource(gmac, 0, " (gmac)")) {
 		printk(KERN_ERR "GMAC: can't request IO resource !\n");
+		gm->of_node = NULL;
 		goto out_unreg;
 	}
 	dev->base_addr = gmac->addrs[0].address;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)