Received: by 10.213.65.68 with SMTP id h4csp403838imn; Tue, 20 Mar 2018 06:15:58 -0700 (PDT) X-Google-Smtp-Source: AG47ELsHf9dSNibK+Aa43tAjxF4gd4yMj0Z4PyQl4cqw36E8KLv6v347c0BBwg0iBW1BgHNDRGeI X-Received: by 10.167.129.129 with SMTP id g1mr13641897pfi.224.1521551758667; Tue, 20 Mar 2018 06:15:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521551758; cv=none; d=google.com; s=arc-20160816; b=IZa3uVhs6KZkiI1nvNo1LtWjR8agliftw/7Hcd4DeMmCjEAVRNtT6jMaYaIM1sOyNE kLQmgNAVf3TnufxKW1hLBOy1wRwibIpLa24SZnQ7QvYHKiROGAPtkRDo3CC76+JOHnP3 8swMRIBt62V/RW7DDep2hAGbCNcWMPXVbXu+X7RX0DaVkWfQE1SEgUu8QAEZSpWAjbsw kkHdUKChNce1cXXV+2VAkRFJfk4FW8yjoeGebQ72UBhMuNUYPf7dU7vkiD0wbcn4JxI8 o95nZJf4m5gS7eOEKzKQJ8BbEvVdQ2vmgNS4pkGBLsPvML0lUxKsSamuo/pFP2AwcmEb vMzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:arc-authentication-results; bh=v/dYHUZVOubYrj6iNFdIG7Ih/gfcQJGnArx3HYwPN3Q=; b=Lym0UGebCYo5ElgKxqRFSGZ1qOpzLWi0DMCETKtVHRYUX00+OcmE4B+BBHQCb3RtRa fGaOQBI6MtbzrVFNQHWEU1cT1+TdYMX6fw6CKLKW1q5XgfgtkB86cAw2gcMeqTzBYWpN lcwvyiHodfChASmL/xYu0suPE0kmQVFaWdrq+/ubRhjINpQzTtU880+uMN65oh4wiWQI IVuCRa1rbnf5tDzQ3GcTCeNW1OeiNjNVY1bwsbD8s3J5ZBcgWzMxhCZ/J3+I4IW9Azbo t+kfEPX/8C8mAwEYOi0hEwxYdjt0VzPp7rXlFoyNPQUMbeTUfPcv/hlFyAwzvhpXryX4 /yCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z10si1199558pgs.329.2018.03.20.06.15.44; Tue, 20 Mar 2018 06:15:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753483AbeCTNOJ (ORCPT + 99 others); Tue, 20 Mar 2018 09:14:09 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6657 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753246AbeCTNOF (ORCPT ); Tue, 20 Mar 2018 09:14:05 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 54960205F33D6; Tue, 20 Mar 2018 21:13:48 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.361.1; Tue, 20 Mar 2018 21:13:40 +0800 From: Wei Yongjun To: Kishon Vijay Abraham I , Maxime Coquelin , Alexandre Torgue , Amelie Delaunay CC: Wei Yongjun , , , Subject: [PATCH -next] phy: stm32: fix using 0 as NULL pointer warnings Date: Tue, 20 Mar 2018 13:19:42 +0000 Message-ID: <1521551982-154471-1-git-send-email-weiyongjun1@huawei.com> X-Mailer: git-send-email 1.8.3.1 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following sparse warnings: drivers/phy/st/phy-stm32-usbphyc.c:331:42: warning: Using plain integer as NULL pointer drivers/phy/st/phy-stm32-usbphyc.c:344:52: warning: Using plain integer as NULL pointer Signed-off-by: Wei Yongjun --- drivers/phy/st/phy-stm32-usbphyc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/st/phy-stm32-usbphyc.c b/drivers/phy/st/phy-stm32-usbphyc.c index bc4e78a..48d4086 100644 --- a/drivers/phy/st/phy-stm32-usbphyc.c +++ b/drivers/phy/st/phy-stm32-usbphyc.c @@ -328,7 +328,7 @@ static int stm32_usbphyc_probe(struct platform_device *pdev) if (IS_ERR(usbphyc->base)) return PTR_ERR(usbphyc->base); - usbphyc->clk = devm_clk_get(dev, 0); + usbphyc->clk = devm_clk_get(dev, NULL); if (IS_ERR(usbphyc->clk)) { ret = PTR_ERR(usbphyc->clk); dev_err(dev, "clk get failed: %d\n", ret); @@ -341,7 +341,7 @@ static int stm32_usbphyc_probe(struct platform_device *pdev) return ret; } - usbphyc->rst = devm_reset_control_get(dev, 0); + usbphyc->rst = devm_reset_control_get(dev, NULL); if (!IS_ERR(usbphyc->rst)) { reset_control_assert(usbphyc->rst); udelay(2);