mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
834dcade30
commit
240b1323c3
1 changed files with 1 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue