Date: Fri, 9 Dec 2016 20:25:59 +0000 (UTC) From: Emmanuel Vadot <manu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r309760 - stable/11/sys/arm/allwinner Message-ID: <201612092025.uB9KPxxG049056@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: manu Date: Fri Dec 9 20:25:59 2016 New Revision: 309760 URL: https://svnweb.freebsd.org/changeset/base/309760 Log: MFC r302585 (jmcneill): Build fix for arm64. The phy interface uses intptr_t for the "phy" parameter, not int. Modified: stable/11/sys/arm/allwinner/aw_usbphy.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/arm/allwinner/aw_usbphy.c ============================================================================== --- stable/11/sys/arm/allwinner/aw_usbphy.c Fri Dec 9 20:21:48 2016 (r309759) +++ stable/11/sys/arm/allwinner/aw_usbphy.c Fri Dec 9 20:25:59 2016 (r309760) @@ -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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612092025.uB9KPxxG049056>