X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fnet%2Fsunlance.c;h=b8e1336820feed95aa7c3721134cd9e9c488e694;hb=9c920a8402f2bb9bd931801d429b65f4eb6a262b;hp=e80311524e02d205ca54afe2533c25333604eb58;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/drivers/net/sunlance.c b/drivers/net/sunlance.c index e80311524..b8e133682 100644 --- a/drivers/net/sunlance.c +++ b/drivers/net/sunlance.c @@ -911,7 +911,7 @@ static void build_fake_packet(struct lance_private *lp) lp->tx_new = TX_NEXT(entry); } -struct net_device *last_dev; +struct net_device *last_dev = 0; static int lance_open(struct net_device *dev) { @@ -1550,8 +1550,8 @@ static int __init sparc_lance_probe(void) static int __init sparc_lance_probe(void) { struct sbus_bus *bus; - struct sbus_dev *sdev = NULL; - struct sbus_dma *ledma = NULL; + struct sbus_dev *sdev = 0; + struct sbus_dma *ledma = 0; static int called; int cards = 0, v; @@ -1565,7 +1565,7 @@ static int __init sparc_lance_probe(void) for_each_sbusdev (sdev, bus) { if (strcmp(sdev->prom_name, "le") == 0) { cards++; - if ((v = sparc_lance_init(sdev, NULL, NULL))) + if ((v = sparc_lance_init(sdev, 0, 0))) return v; continue; } @@ -1573,14 +1573,14 @@ static int __init sparc_lance_probe(void) cards++; ledma = find_ledma(sdev); if ((v = sparc_lance_init(sdev->child, - ledma, NULL))) + ledma, 0))) return v; continue; } if (strcmp(sdev->prom_name, "lebuffer") == 0){ cards++; if ((v = sparc_lance_init(sdev->child, - NULL, sdev))) + 0, sdev))) return v; continue; }