svn commit: r302585 - head/sys/arm/allwinner

Jared McNeill jmcneill at FreeBSD.org
Mon Jul 11 20:00:58 UTC 2016


Author: jmcneill
Date: Mon Jul 11 20:00:57 2016
New Revision: 302585
URL: https://svnweb.freebsd.org/changeset/base/302585

Log:
  Build fix for arm64. The phy interface uses intptr_t for the "phy"
  parameter, not int.

Modified:
  head/sys/arm/allwinner/aw_usbphy.c

Modified: head/sys/arm/allwinner/aw_usbphy.c
==============================================================================
--- head/sys/arm/allwinner/aw_usbphy.c	Mon Jul 11 19:58:00 2016	(r302584)
+++ head/sys/arm/allwinner/aw_usbphy.c	Mon Jul 11 20:00:57 2016	(r302585)
@@ -148,7 +148,7 @@ awusbphy_vbus_detect(device_t dev, int *
 }
 
 static int
-awusbphy_phy_enable(device_t dev, int phy, bool enable)
+awusbphy_phy_enable(device_t dev, intptr_t phy, bool enable)
 {
 	struct awusbphy_softc *sc;
 	regulator_t reg;
@@ -177,8 +177,9 @@ awusbphy_phy_enable(device_t dev, int ph
 	} else
 		error = regulator_disable(reg);
 	if (error != 0) {
-		device_printf(dev, "couldn't %s regulator for phy %d\n",
-		    enable ? "enable" : "disable", phy);
+		device_printf(dev,
+		    "couldn't %s regulator for phy %jd\n",
+		    enable ? "enable" : "disable", (intmax_t)phy);
 		return (error);
 	}
 


More information about the svn-src-head mailing list