From patchwork Mon Nov 16 16:41:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 7628951 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: X-Original-To: patchwork-linux-arm-msm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BBFC79F1C2 for ; Mon, 16 Nov 2015 16:42:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E4010205BE for ; Mon, 16 Nov 2015 16:42:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EBBC3205B5 for ; Mon, 16 Nov 2015 16:42:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751914AbbKPQmA (ORCPT ); Mon, 16 Nov 2015 11:42:00 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:62468 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752845AbbKPQl5 (ORCPT ); Mon, 16 Nov 2015 11:41:57 -0500 Received: from wuerfel.localnet ([134.3.118.24]) by mrelayeu.kundenserver.de (mreue102) with ESMTPSA (Nemesis) id 0MA5Q9-1a5Hei0x0z-00BJLc; Mon, 16 Nov 2015 17:41:21 +0100 From: Arnd Bergmann To: Linus Walleij Cc: Bjorn Andersson , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Srinivas Kandagatla , Kumar Gala , Andy Gross , David Brown , linux-arm-msm@vger.kernel.org Subject: [PATCH] pinctrl: fix qcom ssbi drivers for 64-bit compilation Date: Mon, 16 Nov 2015 17:41:18 +0100 Message-ID: <5235862.Gokjxf5QH1@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V03:K0:e+LnaOOhpuqq6Th+FWR2/sPXCrcgkacLWPcsdMCEit/B596hdeW JwotPc613iSJi49WXHgWRZA1RCFpkJd6c5uVcQGk7vSQCU6sTGrqmYXDQVVtanTGpuA4XVE w2EAN9aJ39JPxdSpRJvuqxn76ahjT/TNbheixTEP4wUtgWukZs0F2GskEMmFWmyPnT/Yls0 q2H2TmNIu29uSPQFIgyKg== X-UI-Out-Filterresults: notjunk:1; V01:K0:guWzPOgajQM=:4qbbETZBl+63ozVhQzWHL3 XhB2A+tOpN4yAQ+2ulHpeLml7jaWFel70zZjuRSrbgRBj+w65AcByiZXrvCVSlBlE0iBINjD8 EYxLa+Jg/i2VgZ23IdGbx0BZT8KMfBrsZ8f+wcTjdTAEXhbrZZH4L+TUtAYPgGcPLc8S8EWYT z86mylxodvIVdsW9ZgHq8aVH4hMMOS+70irfJOAcSuViYNVfJ617+jNb7zpMTwk3aJRzu3ZML JLs6+pOJ65NOXjIcowBkZQUJXo1R6TrG3yr/jwzgmNPw9t+OZ9B+xln8pHkpUWWp4T+UctLQ7 d7L4imXRraizdd4wnXzmquy+GDr3I9MxniFQKxWSS71gdHUziP9G1PHS2+Ns0uyatp/daGA7z 7aeWr9v/mz/e6sBkIlOdtWY+PJ3Xf8V51kgaysRj710VSzJUHgmxVIbND/ZMCxWf/rUuvmX1M ckPH5yGN21W5xH8Mr7evsxxACrTD1gA7yh7/9+jlvqonRuuBJc0gJg0iGnwmV+HJsviABh61A PFqiFsjumSUtCTVIhIvyUx9t0Z+e7M1ALFvBzppESDqSmMO4nsvuHAhGHJVpsJhbUD2BpI28e oJmuxIISn02qCYJGqfGSrzTmICjzR6Ty1oZ3xhyzLGdPos5vh0TrEUwUGnZNvY1FNcsgBlNRS 5z/8XaoySOQuqVJ9OeKZswSk3XvtVyjkgcCAMoGpSWLY1YmPEyjoDTYRsSGuMGmJmMVtcok3t MleEu+c0a3ul3C55 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When building pinctrl-ssbi-gpio and pinctrl-ssbi-mpp for ARM64, we get a compile warning about invalid types: drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c: In function 'pm8xxx_gpio_probe': drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c:675:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c: In function 'pm8xxx_mpp_probe': drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c:766:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] This changes the code so we cast the pointer to 'unsigned long', which is the right thing to do here. Signed-off-by: Arnd Bergmann Reviewed-by: Bjorn Andersson --- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c b/drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c index d809c9eaa323..19a3c3bc2f1f 100644 --- a/drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c +++ b/drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c @@ -672,7 +672,7 @@ static int pm8xxx_gpio_probe(struct platform_device *pdev) return -ENOMEM; pctrl->dev = &pdev->dev; - pctrl->npins = (unsigned)of_device_get_match_data(&pdev->dev); + pctrl->npins = (unsigned long)of_device_get_match_data(&pdev->dev); pctrl->regmap = dev_get_regmap(pdev->dev.parent, NULL); if (!pctrl->regmap) { diff --git a/drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c b/drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c index 8982027de8e8..b868ef1766a0 100644 --- a/drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c +++ b/drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c @@ -763,7 +763,7 @@ static int pm8xxx_mpp_probe(struct platform_device *pdev) return -ENOMEM; pctrl->dev = &pdev->dev; - pctrl->npins = (unsigned)of_device_get_match_data(&pdev->dev); + pctrl->npins = (unsigned long)of_device_get_match_data(&pdev->dev); pctrl->regmap = dev_get_regmap(pdev->dev.parent, NULL); if (!pctrl->regmap) {