Set ifp->if_name to "awi" instead of device_get_name(dev) to avoid

casting away a const qualifier so the awi driver compiles.
This commit is contained in:
Brooks Davis 2002-02-26 20:09:19 +00:00
parent 834dcade30
commit 240b1323c3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91326

View File

@ -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",