mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Make dc compile after repo-copy.
This commit is contained in:
parent
887a8d04dc
commit
6a3033a8b4
3 changed files with 6 additions and 5 deletions
|
|
@ -66,7 +66,7 @@ __FBSDID("$FreeBSD$");
|
|||
|
||||
#include <dev/pci/pcivar.h>
|
||||
|
||||
#include <pci/if_dcreg.h>
|
||||
#include <dev/dc/if_dcreg.h>
|
||||
|
||||
#include "miibus_if.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ __FBSDID("$FreeBSD$");
|
|||
#define SRM_MEDIA
|
||||
#endif
|
||||
|
||||
#include <pci/if_dcreg.h>
|
||||
#include <dev/dc/if_dcreg.h>
|
||||
|
||||
#ifdef __sparc64__
|
||||
#include <dev/ofw/openfirm.h>
|
||||
|
|
@ -2356,8 +2356,6 @@ dc_detach(device_t dev)
|
|||
callout_drain(&sc->dc_stat_ch);
|
||||
ether_ifdetach(ifp);
|
||||
}
|
||||
if (ifp)
|
||||
if_free(ifp);
|
||||
if (sc->dc_miibus)
|
||||
device_delete_child(dev, sc->dc_miibus);
|
||||
bus_generic_detach(dev);
|
||||
|
|
@ -2369,6 +2367,9 @@ dc_detach(device_t dev)
|
|||
if (sc->dc_res)
|
||||
bus_release_resource(dev, DC_RES, DC_RID, sc->dc_res);
|
||||
|
||||
if (ifp)
|
||||
if_free(ifp);
|
||||
|
||||
if (sc->dc_cdata.dc_sbuf != NULL)
|
||||
bus_dmamem_free(sc->dc_stag, sc->dc_cdata.dc_sbuf, sc->dc_smap);
|
||||
if (sc->dc_ldata != NULL)
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ __FBSDID("$FreeBSD$");
|
|||
#include <machine/resource.h>
|
||||
#include <sys/bus.h>
|
||||
|
||||
#include <pci/if_dcreg.h>
|
||||
#include <dev/dc/if_dcreg.h>
|
||||
|
||||
#include "miibus_if.h"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue