From patchwork Tue Dec 26 12:33:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Grinberg X-Patchwork-Id: 10133049 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B67C560211 for ; Tue, 26 Dec 2017 12:35:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9BE402DC74 for ; Tue, 26 Dec 2017 12:35:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8DA032DF8D; Tue, 26 Dec 2017 12:35:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1982E2DC74 for ; Tue, 26 Dec 2017 12:35:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=xUu4e+AVtP/DMEGLcG1DF/cPvaPGAkl1G+ddMT9LUmU=; b=jWw S0tGZi0dkIB0J/LJF0LYk/19ws2LdPp1if0qySvWXV98LWoOweFKAvAYF7VTqKGdff9rd+Qh6C//S EB25I1LcJRFJ33gHhP0SDYEvPJlybroGJemfZY22wukDCNaQwX+6/8YeioLfMjaCwx7VhvLgV7JA0 DCtAa4Q7ecbaZ0X+oKnVD3xp4glSgkbOtC5y6qCgmdQ+6FlDhuTA5EAt3oJsTkOeFmcwGhD2E1I+6 eXPBwSLhDzBvpaXpyLYwshhWpXPvXWN73UtN67pg6hRDbuFyEFfzNk/uGWV15WlPx0QT3Z/zsykIO 6rG2djUB8ZJ1aSsCw/2oPhtYDDq0A7g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eToS0-0007Ou-Sf; Tue, 26 Dec 2017 12:35:20 +0000 Received: from softlayer.compulab.co.il ([50.23.254.55] helo=compulab.co.il) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eToRx-00061Y-3L for linux-arm-kernel@lists.infradead.org; Tue, 26 Dec 2017 12:35:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=compulab.co.il; s=default; h=Message-Id:Date:Subject:Cc:To:From:Sender: Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=HSX9iZCUIuYH+FecgdS1uGiYVgDgd+BJmw90PZGhW+4=; b=mPXppv2Xq/Lb4KxRtcTMOu6iEt /pz1tw9zpUsT0/xofKoEsNHL7CWx0jUPTnYaOraLtTiAaKwd7W3YgrMpGz2K2NKzGZZOfSX8rOLsV T6ueV5VBQsEuPMugzSsxLt0z2FagCp4LRWM/D5mmGanVXBnx+D9dvlUs2sgQk/dwTlcqfqao9uDyz tXwvimOdypC5k8em/ZxHBpQI6gZQuGguuQwGLqz5VS6gED8ELza/ZYvdX5w50qF2ODk33RzQ7YG6I LPp9R9pmYrXcQHcoB+Qc2ouTadALpqilccOtqAfrK+jRSPX9DBffv9kSZV63wZmGw0N1vzoG9RDtD awPDObmQ==; Received: from [37.142.126.90] (port=33277 helo=zimbra-mta.compulab.co.il) by softlayer.compulab.co.il with esmtp (Exim 4.87) (envelope-from ) id 1eToQl-0005pp-MO; Tue, 26 Dec 2017 14:34:03 +0200 Received: from localhost (localhost [127.0.0.1]) by zimbra-mta.compulab.co.il (Postfix) with ESMTP id 632D3481835; Tue, 26 Dec 2017 14:34:02 +0200 (IST) Received: from zimbra-mta.compulab.co.il ([127.0.0.1]) by localhost (zimbra-mta.compulab.co.il [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Rinj9n-I-aOr; Tue, 26 Dec 2017 14:34:01 +0200 (IST) Received: from localhost (localhost [127.0.0.1]) by zimbra-mta.compulab.co.il (Postfix) with ESMTP id F0722481834; Tue, 26 Dec 2017 14:33:58 +0200 (IST) X-Virus-Scanned: amavisd-new at zimbra-mta.compulab.co.il Received: from zimbra-mta.compulab.co.il ([127.0.0.1]) by localhost (zimbra-mta.compulab.co.il [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id mJ7p-bCKgEGS; Tue, 26 Dec 2017 14:33:58 +0200 (IST) Received: from compulab.co.il (grinberg-linux.compulab.local [192.168.11.13]) by zimbra-mta.compulab.co.il (Postfix) with SMTP id 5B5D8481833; Tue, 26 Dec 2017 14:33:55 +0200 (IST) Received: (nullmailer pid 5450 invoked by uid 1000); Tue, 26 Dec 2017 12:33:55 -0000 From: Igor Grinberg To: Robert Jarzmik Subject: [PATCH] ARM: pxa3xx: fix static checker warning in ulpi Date: Tue, 26 Dec 2017 14:33:51 +0200 Message-Id: <20171226123351.5384-1-grinberg@compulab.co.il> X-Mailer: git-send-email 2.13.6 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - softlayer.compulab.co.il X-AntiAbuse: Original Domain - lists.infradead.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - compulab.co.il X-Get-Message-Sender-Via: softlayer.compulab.co.il: acl_c_recent_authed_mail_ips_text_entry: grinberg@compulab.co.il|compulab.co.il X-Authenticated-Sender: softlayer.compulab.co.il: grinberg@compulab.co.il X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171226_043517_315780_E9E7C3A5 X-CRM114-Status: UNSURE ( 9.65 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Haojian Zhuang , Dan Carpenter , Daniel Mack , linux-arm-kernel@lists.infradead.org, Igor Grinberg MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Static checker reports the following warning: arch/arm/mach-pxa/pxa3xx-ulpi.c:336 pxa3xx_u2d_probe() warn: did you mean to pass the address of 'u2d' Fix it by passing the correct pointer. Reported-by: Dan Carpenter Signed-off-by: Igor Grinberg --- arch/arm/mach-pxa/pxa3xx-ulpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-pxa/pxa3xx-ulpi.c b/arch/arm/mach-pxa/pxa3xx-ulpi.c index 60cb59a7ebd1..c00450764352 100644 --- a/arch/arm/mach-pxa/pxa3xx-ulpi.c +++ b/arch/arm/mach-pxa/pxa3xx-ulpi.c @@ -331,7 +331,7 @@ static int pxa3xx_u2d_probe(struct platform_device *pdev) goto err_free_plat; } - platform_set_drvdata(pdev, &u2d); + platform_set_drvdata(pdev, u2d); return 0;