mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Simplify arge_flush_ddr to use updated ar71xx_device_flush_ddr_ge(unit).
Approved by: adrian (mentor)
This commit is contained in:
parent
a841e1ebe6
commit
098edc8725
1 changed files with 2 additions and 4 deletions
|
|
@ -191,10 +191,8 @@ MTX_SYSINIT(miibus_mtx, &miibus_mtx, "arge mii lock", MTX_DEF);
|
|||
static void
|
||||
arge_flush_ddr(struct arge_softc *sc)
|
||||
{
|
||||
if (sc->arge_mac_unit == 0)
|
||||
ar71xx_device_flush_ddr_ge(0);
|
||||
else
|
||||
ar71xx_device_flush_ddr_ge(1);
|
||||
|
||||
ar71xx_device_flush_ddr_ge(sc->arge_mac_unit);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
Loading…
Reference in a new issue