Skip to contentSkip to conversation

fix compile breakage in drivers/net/arcnet/com20020-pci.c

PATCH New Adrian Bunk 1 participant 1 message Nov 18, 2002

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix compile breakage in drivers/net/arcnet/com20020-pci.c

Hi Matthew,

could you check whether the patch below that does a name -> dev.name to fix the following compile error in 2.5.48 is correct?

<-- snip -->

...
gcc -Wp,-MD,drivers/net/arcnet/.com20020-pci.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=k6 -Iarch/i386/mach-generic -nostdinc -iwithprefix include -DKBUILD_BASENAME=com20020_pci -DKBUILD_MODNAME=com20020_pci -c -o drivers/net/arcnet/com20020-pci.o drivers/net/arcnet/com20020-pci.c
drivers/net/arcnet/com20020-pci.c: In function `com20020pci_probe':
drivers/net/arcnet/com20020-pci.c:93: structure has no member named `name' make[3]: *** [drivers/net/arcnet/com20020-pci.o] Error 1

<-- snip -->

TIA
Adrian

drivers/net/arcnet/com20020-pci.c renamed from drivers/net/arcnet/com20020-pci.c.old +1 -1
@@ -90,7 +90,7 @@
 	dev->base_addr = ioaddr;
 	dev->irq = pdev->irq;
 	dev->dev_addr[0] = node;
-	lp->card_name = pdev->name;
+	lp->card_name = pdev->dev.name;
 	lp->card_flags = id->driver_data;
 	lp->backplane = backplane;
 	lp->clockp = clockp & 7;