Module Name: src Committed By: jmcneill Date: Sat Oct 18 11:23:17 UTC 2014
Modified Files: src/sys/arch/arm/allwinner: awin_gige.c Log Message: fix the other strcmp too To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/arch/arm/allwinner/awin_gige.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/arm/allwinner/awin_gige.c diff -u src/sys/arch/arm/allwinner/awin_gige.c:1.10 src/sys/arch/arm/allwinner/awin_gige.c:1.11 --- src/sys/arch/arm/allwinner/awin_gige.c:1.10 Sat Oct 18 11:02:14 2014 +++ src/sys/arch/arm/allwinner/awin_gige.c Sat Oct 18 11:23:17 2014 @@ -31,7 +31,7 @@ #include <sys/cdefs.h> -__KERNEL_RCSID(1, "$NetBSD: awin_gige.c,v 1.10 2014/10/18 11:02:14 martin Exp $"); +__KERNEL_RCSID(1, "$NetBSD: awin_gige.c,v 1.11 2014/10/18 11:23:17 jmcneill Exp $"); #include <sys/param.h> #include <sys/bus.h> @@ -134,7 +134,7 @@ awin_gige_attach(device_t parent, device 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")) { + } else if (strcmp(phy_type, "mii") == 0) { clkreg = AWIN_GMAC_CLK_TCS_MII; } else { panic("unknown phy type '%s'", phy_type);