From 240b1323c30b4ec775490bb4f3857e5dda78a3cd Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Tue, 26 Feb 2002 20:09:19 +0000 Subject: [PATCH] Set ifp->if_name to "awi" instead of device_get_name(dev) to avoid casting away a const qualifier so the awi driver compiles. --- sys/dev/awi/if_awi_pccard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/awi/if_awi_pccard.c b/sys/dev/awi/if_awi_pccard.c index 78fd0112075f..d39b61330eca 100644 --- a/sys/dev/awi/if_awi_pccard.c +++ b/sys/dev/awi/if_awi_pccard.c @@ -138,7 +138,7 @@ awi_pccard_attach(device_t dev) psc->sc_mem_res = 0; psc->sc_intrhand = 0; - ifp->if_name = device_get_name(dev); + ifp->if_name = "awi"; ifp->if_unit = device_get_unit(dev); if (ifp->if_name == NULL) { printf("awi%d: awi_pccard_attach: cannot get device name\n",