From: Felipe Balbi Subject: [PATCH 1/3] usb: phy: msm: cast to unsigned long int Date: Wed, 30 Apr 2014 11:38:34 -0500 Message-ID: <1398875916-14461-1-git-send-email-balbi@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from devils.ext.ti.com ([198.47.26.153]:37814 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422650AbaD3Qit (ORCPT ); Wed, 30 Apr 2014 12:38:49 -0400 Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: iivanov@mm-sol.com Cc: tim.bird@sonymobile.com, linux-arm-msm@vger.kernel.org, Linux USB Mailing List , Felipe Balbi this solves the following build warning found when running compile tests. drivers/usb/phy/phy-msm-usb.c: In function =E2=80=98msm_otg_read_dt=E2=80= =99: drivers/usb/phy/phy-msm-usb.c:1459:20: warning: cast from pointer \ to integer of different size [-Wpointer-to-int-cast] pdata->phy_type =3D (int) id->data; ^ Signed-off-by: Felipe Balbi --- all patches are on top of Ivan's 20 patch series. drivers/usb/phy/phy-msm-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/phy/phy-msm-usb.c b/drivers/usb/phy/phy-msm-us= b.c index 9dc7918..c9963c8 100644 --- a/drivers/usb/phy/phy-msm-usb.c +++ b/drivers/usb/phy/phy-msm-usb.c @@ -1456,7 +1456,7 @@ static int msm_otg_read_dt(struct platform_device= *pdev, struct msm_otg *motg) motg->pdata =3D pdata; =20 id =3D of_match_device(msm_otg_dt_match, &pdev->dev); - pdata->phy_type =3D (int) id->data; + pdata->phy_type =3D (unsigned long int) id->data; =20 motg->link_rst =3D devm_reset_control_get(&pdev->dev, "link"); if (IS_ERR(motg->link_rst)) --=20 2.0.0.rc1