Message ID | 1604642930-29019-9-git-send-email-chunfeng.yun@mediatek.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=AdY6=EM=lists.infradead.org=linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6FC5314B4 for <patchwork-linux-amlogic@patchwork.kernel.org>; Fri, 6 Nov 2020 06:21:57 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EBA59206F9 for <patchwork-linux-amlogic@patchwork.kernel.org>; Fri, 6 Nov 2020 06:21:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="0yfwAPUi"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="UBn3Uvoq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EBA59206F9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: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:List-Owner; bh=/+csw31kfVgINPHQL+OlKVGeScw0QeOtd8R6dJJEAl8=; b=0yfwAPUiXX4396SODtfOKlsKt qEBtznBRSXeYC17+DRVdVH52LXdZ8YfaTrlVssFSn1BRWTqLMLsKXdkYRq9UUDVn8T9Fqd9AgZ+gd DQJ4K4dmM7LJT8dJ577AI37mEOyHT+9xewOVf3gSlST1X1l+H6T4M2vKGYFXb1R26Sh5xp4FXAkQY ku7Jqi64ubdBwlJ4KqiPAFptLT2uRv9ZjpySvyZxrvOavQ/g32UNrRTYkAjR9PYpJURAMk/0X11ef IATNpjwwwUmdZRpYz7iYZLh/gfnJnXgIAikS0GSa2uGizDVVL6bsgKpHV7U3bghBMbW7qHNtyYgQG uqxHuI/Og==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kav83-0004Ky-0J; Fri, 06 Nov 2020 06:21:43 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kav6L-0003FQ-Go; Fri, 06 Nov 2020 06:20:01 +0000 X-UUID: 262d05df23ca4dc2875b86c41b5151a6-20201105 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=COJEGhwhZ3YiSgy4tngOZ9SFs4XBRBqOlSY8hmLbX5E=; b=UBn3Uvoqprv9vmt31afFMhGcvRAQfYE84Uz5xwDl5VVylT8EOgDCVZpwdTNli+pYF9TmMEmjp3stAMwcCei0IUwqEqnb1er++xMWO+j/jmxr+kmwb+UzTgXeHnLWpSgSn+8uP+fi0qwiM+eQYeqwgzv1Rr6bLZf/gkhX8ULH6nQ=; X-UUID: 262d05df23ca4dc2875b86c41b5151a6-20201105 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from <chunfeng.yun@mediatek.com>) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 85257129; Thu, 05 Nov 2020 22:19:52 -0800 Received: from MTKMBS31N2.mediatek.inc (172.27.4.87) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 5 Nov 2020 22:09:50 -0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by MTKMBS31N2.mediatek.inc (172.27.4.87) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 6 Nov 2020 14:09:47 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 6 Nov 2020 14:09:45 +0800 From: Chunfeng Yun <chunfeng.yun@mediatek.com> To: Kishon Vijay Abraham I <kishon@ti.com>, Vinod Koul <vkoul@kernel.org> Subject: [PATCH v2 09/17] phy: phy-mtk-ufs: convert to devm_platform_ioremap_resource Date: Fri, 6 Nov 2020 14:08:42 +0800 Message-ID: <1604642930-29019-9-git-send-email-chunfeng.yun@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1604642930-29019-1-git-send-email-chunfeng.yun@mediatek.com> References: <1604642930-29019-1-git-send-email-chunfeng.yun@mediatek.com> MIME-Version: 1.0 X-TM-SNTS-SMTP: 45453EAE72756B745B4B72D84C1D76AA618179DF419B512DF28C53DFD2BAE7C12000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201106_011957_825762_7076D8D5 X-CRM114-Status: GOOD ( 11.94 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 MIME_BASE64_TEXT RAW: Message text disguised using base64 encoding -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-amlogic.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-amlogic/> List-Post: <mailto:linux-amlogic@lists.infradead.org> List-Help: <mailto:linux-amlogic-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=subscribe> Cc: Ondrej Jirman <megous@megous.com>, Peter Chen <peter.chen@nxp.com>, Neil Armstrong <narmstrong@baylibre.com>, Anil Varughese <aniljoy@cadence.com>, Wei Yongjun <weiyongjun1@huawei.com>, Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>, Fabio Estevam <festevam@gmail.com>, Jerome Brunet <jbrunet@baylibre.com>, Florian Fainelli <f.fainelli@gmail.com>, Kevin Hilman <khilman@baylibre.com>, Krzysztof Kozlowski <krzk@kernel.org>, Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>, Chen-Yu Tsai <wens@csie.org>, bcm-kernel-feedback-list@broadcom.com, NXP Linux Team <linux-imx@nxp.com>, Chunfeng Yun <chunfeng.yun@mediatek.com>, Icenowy Zheng <icenowy@aosc.io>, Bharat Gooty <bharat.gooty@broadcom.com>, Martin Blumenstingl <martin.blumenstingl@googlemail.com>, Ray Jui <rjui@broadcom.com>, Sascha Hauer <s.hauer@pengutronix.de>, Maxime Ripard <mripard@kernel.org>, Yue Wang <yue.wang@amlogic.com>, Lubomir Rintel <lkundrak@v3.sk>, Remi Pommarel <repk@triplefau.lt>, linux-mediatek@lists.infradead.org, Rikard Falkeborn <rikard.falkeborn@gmail.com>, Matthias Brugger <matthias.bgg@gmail.com>, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Roger Quadros <rogerq@ti.com>, Hanjie Lin <hanjie.lin@amlogic.com>, Ma Feng <mafeng.ma@huawei.com>, Scott Branden <sbranden@broadcom.com>, Randy Dunlap <rdunlap@infradead.org>, Jyri Sarha <jsarha@ti.com>, linux-kernel@vger.kernel.org, Sanket Parmar <sparmar@cadence.com>, Pengutronix Kernel Team <kernel@pengutronix.de>, Joe Perches <joe@perches.com>, Colin Ian King <colin.king@canonical.com>, Shawn Guo <shawnguo@kernel.org>, Li Jun <jun.li@nxp.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" <linux-amlogic-bounces@lists.infradead.org> Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org |
Series |
[v2,01/17] phy: allwinner: convert to devm_platform_ioremap_resource(_byname)
|
expand
|
diff --git a/drivers/phy/mediatek/phy-mtk-ufs.c b/drivers/phy/mediatek/phy-mtk-ufs.c index cf94f5c35dc5..769b00b038d8 100644 --- a/drivers/phy/mediatek/phy-mtk-ufs.c +++ b/drivers/phy/mediatek/phy-mtk-ufs.c @@ -195,7 +195,6 @@ static int ufs_mtk_phy_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct phy *generic_phy; struct phy_provider *phy_provider; - struct resource *res; struct ufs_mtk_phy *phy; int ret; @@ -203,8 +202,7 @@ static int ufs_mtk_phy_probe(struct platform_device *pdev) if (!phy) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - phy->mmio = devm_ioremap_resource(dev, res); + phy->mmio = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(phy->mmio)) return PTR_ERR(phy->mmio);
Use devm_platform_ioremap_resource to simplify code Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> --- v2: no changes --- drivers/phy/mediatek/phy-mtk-ufs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)