diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2002-02-26 20:09:19 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2002-02-26 20:09:19 +0000 |
commit | 240b1323c30b4ec775490bb4f3857e5dda78a3cd (patch) | |
tree | cef475cc632649b861db855a80330b9228b517ad /sys/dev/awi | |
parent | 834dcade3083410d1d52d062f4f1962ddaf59f08 (diff) |
Set ifp->if_name to "awi" instead of device_get_name(dev) to avoid
casting away a const qualifier so the awi driver compiles.
Notes
Notes:
svn path=/head/; revision=91326
Diffstat (limited to 'sys/dev/awi')
-rw-r--r-- | sys/dev/awi/if_awi_pccard.c | 2 |
1 files changed, 1 insertions, 1 deletions
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", |