Date: Mon, 11 Jul 2016 20:00:57 +0000 (UTC) From: Jared McNeill <jmcneill@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r302585 - head/sys/arm/allwinner Message-ID: <201607112000.u6BK0vEZ051407@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607112000.u6BK0vEZ051407>