Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/marvell make this compile again:
details: https://anonhg.NetBSD.org/src/rev/2b26a4f4c99b
branches: trunk
changeset: 464285:2b26a4f4c99b
user: chs <chs%NetBSD.org@localhost>
date: Tue Oct 01 17:35:09 2019 +0000
description:
make this compile again:
- remove unused config attributes
- rename a local variable to avoid a name conflict
diffstat:
sys/dev/marvell/files.armada | 4 +---
sys/dev/marvell/if_mvxpe.c | 12 ++++++------
2 files changed, 7 insertions(+), 9 deletions(-)
diffs (66 lines):
diff -r c1b859d8c05f -r 2b26a4f4c99b sys/dev/marvell/files.armada
--- a/sys/dev/marvell/files.armada Tue Oct 01 16:36:58 2019 +0000
+++ b/sys/dev/marvell/files.armada Tue Oct 01 17:35:09 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: files.armada,v 1.3 2015/06/03 04:20:02 hsuenaga Exp $
+# $NetBSD: files.armada,v 1.4 2019/10/01 17:35:09 chs Exp $
# Configuration info for Marvell ARMADA integrated peripherals
# ARMADA XP Buffer Manger
@@ -6,11 +6,9 @@
file dev/marvell/mvxpbm.c
# ARMADA XP Gigabit Ethernet Controller Interface
-define mvxpe { [port = -1 ], [irq = -1] }
device mvxpe: mvxpbm, ether, ifnet, arp, mii
file dev/marvell/if_mvxpe.c mvxpe needs-flag
# ARMADA XP Cryptographic Engines and Security Accelerator
-define mvxpsec { [port = -1 ], [irq = -1] }
device mvxpsec: opencrypto
file dev/marvell/mvxpsec.c mvxpsec needs-flag
diff -r c1b859d8c05f -r 2b26a4f4c99b sys/dev/marvell/if_mvxpe.c
--- a/sys/dev/marvell/if_mvxpe.c Tue Oct 01 16:36:58 2019 +0000
+++ b/sys/dev/marvell/if_mvxpe.c Tue Oct 01 17:35:09 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_mvxpe.c,v 1.28 2019/09/13 07:55:07 msaitoh Exp $ */
+/* $NetBSD: if_mvxpe.c,v 1.29 2019/10/01 17:35:09 chs Exp $ */
/*
* Copyright (c) 2015 Internet Initiative Japan Inc.
* All rights reserved.
@@ -25,7 +25,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_mvxpe.c,v 1.28 2019/09/13 07:55:07 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_mvxpe.c,v 1.29 2019/10/01 17:35:09 chs Exp $");
#include "opt_multiprocessor.h"
@@ -286,7 +286,7 @@
mvxpe_attach(device_t parent, device_t self, void *aux)
{
struct mvxpe_softc *sc = device_private(self);
- struct mii_softc *mii;
+ struct mii_softc *child;
struct ifnet *ifp = &sc->sc_ethercom.ec_if;
struct mii_data * const mii = &sc->sc_mii;
struct marvell_attach_args *mva = aux;
@@ -485,14 +485,14 @@
* but some boards may not.
*/
mii_attach(self, mii, 0xffffffff, MII_PHY_ANY, sc->sc_dev->dv_unit, 0);
- mii = LIST_FIRST(&mii->mii_phys);
- if (mii == NULL) {
+ child = LIST_FIRST(&mii->mii_phys);
+ if (child == NULL) {
aprint_error_dev(self, "no PHY found!\n");
ifmedia_add(&mii->mii_media, IFM_ETHER | IFM_MANUAL, 0, NULL);
ifmedia_set(&mii->mii_media, IFM_ETHER | IFM_MANUAL);
} else {
ifmedia_set(&mii->mii_media, IFM_ETHER | IFM_AUTO);
- phyaddr = MVXPE_PHYADDR_PHYAD(mii->mii_phy);
+ phyaddr = MVXPE_PHYADDR_PHYAD(child->mii_phy);
MVXPE_WRITE(sc, MVXPE_PHYADDR, phyaddr);
DPRINTSC(sc, 1, "PHYADDR: %#x\n", MVXPE_READ(sc, MVXPE_PHYADDR));
}
Home |
Main Index |
Thread Index |
Old Index