net/7990: Make lance_private.name const
This allows to drop a few casts. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
a8ab77a83a
commit
4ffa8fcd17
@@ -149,7 +149,7 @@ static void hplance_init(struct net_device *dev, struct dio_dev *d)
|
||||
}
|
||||
|
||||
lp = netdev_priv(dev);
|
||||
lp->lance.name = (char *)d->name; /* discards const, shut up gcc */
|
||||
lp->lance.name = d->name;
|
||||
lp->lance.base = va;
|
||||
lp->lance.init_block = (struct lance_init_block *)(va + HPLANCE_MEMOFF); /* CPU addr */
|
||||
lp->lance.lance_init_block = NULL; /* LANCE addr of same RAM */
|
||||
|
Reference in New Issue
Block a user