Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/allwinner Fix previous.
details: https://anonhg.NetBSD.org/src/rev/e3fa729319e4
branches: trunk
changeset: 803232:e3fa729319e4
user: martin <martin%NetBSD.org@localhost>
date: Sat Oct 18 11:02:14 2014 +0000
description:
Fix previous.
diffstat:
sys/arch/arm/allwinner/awin_gige.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r b6866d85c24f -r e3fa729319e4 sys/arch/arm/allwinner/awin_gige.c
--- a/sys/arch/arm/allwinner/awin_gige.c Sat Oct 18 09:54:19 2014 +0000
+++ b/sys/arch/arm/allwinner/awin_gige.c Sat Oct 18 11:02:14 2014 +0000
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: awin_gige.c,v 1.9 2014/10/17 20:18:41 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: awin_gige.c,v 1.10 2014/10/18 11:02:14 martin Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -132,7 +132,7 @@
*/
if (!prop_dictionary_get_cstring_nocopy(cfg, "phy-type", &phy_type))
phy_type = "rgmii";
- if (strcmp(phy_type, "rgmii")) {
+ if (strcmp(phy_type, "rgmii") == 0) {
clkreg = AWIN_GMAC_CLK_PIT | AWIN_GMAC_CLK_TCS_INT_RGMII;
} else if (strcmp(phy_type, "mii")) {
clkreg = AWIN_GMAC_CLK_TCS_MII;
Home |
Main Index |
Thread Index |
Old Index