Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1040806pxb; Thu, 5 Nov 2020 22:14:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJy9sW/w9FM2KFYbq0YQBR8EocLZEJ1Kt8DNQ1sDLwZhNyw8pnSpDh/LtpnzOomVO05lK9S+ X-Received: by 2002:a17:906:c43:: with SMTP id t3mr511050ejf.219.1604643251152; Thu, 05 Nov 2020 22:14:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604643251; cv=none; d=google.com; s=arc-20160816; b=HknH2V5oCY3hwwMqhfpQDCYy5Guv1F6ny5lPj6V44sky6FOtqku7S4QUovpidn9Zig f6rBwAYlTLbsLPdwQ12H7E088ATnRypgPdjb7zqN8xWWY7R7M5s4Qry7y0w/mA4uazU8 v1VrWII3EKpBtDzPG++peKOSgbCtBCgfCXiQUJD3vkgSelafEb+kxIAqWMdPC8l1wFi3 uTFVo57F63701qCTeYCEEqOcdqPdBQEpXQjkK+gZgwd28QCtY4GMu5DshIN3eGTFl/XA Sgi55jbAa2DP0sAuJLEvg+FwxHDRmGo1nkdGuEksm5ZS/nG1GzSPZWRdWa0gScgiM2TR prwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kcYJOQCUhpL0Je8ZLN8zpzjkwI1DXOb1DaBG4XizmFU=; b=UOSZCtOiPex0Bx8sOqwURGtJ9e563WiNd5j2piih7tXZ26Zplk+fe538Q+bsJTHK4+ cwEFW66znKj3vYOiFKwAT29Y73zohrcn8Hr6CWFlo3sWrIdDmufYtL+8Df3pyvzuaO5T 1UDEK40Wn9OB10mjEF1WGWxcf/9bQ3T/FXl8VMuYPXSUYYQ9eyFPVR7fxK7Scv3w7Y6N 9zDZMjeBU4t/+/Rpd/r6352780JR+huOALk/YsSvoWc0lc/mJlljtXYbdtakDYORD1eo l7NJrvl9VcLjOyTvoR/wJtTTdSw1G6eUC0JCeH9XFZ8VmkE2zBIkMHJEpoNWaUCCxxHe 3cPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=eRZi6PWp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h24si164159ejk.371.2020.11.05.22.13.47; Thu, 05 Nov 2020 22:14:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=eRZi6PWp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726402AbgKFGK2 (ORCPT + 99 others); Fri, 6 Nov 2020 01:10:28 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:50738 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726242AbgKFGK1 (ORCPT ); Fri, 6 Nov 2020 01:10:27 -0500 X-UUID: 1b55ed1272584519a646441b1e70d0ed-20201106 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=kcYJOQCUhpL0Je8ZLN8zpzjkwI1DXOb1DaBG4XizmFU=; b=eRZi6PWpR3VJ3M/nFI8L42HSilmwAvocbFO4EXOl8Tdrgk/0JwS4U22xLGJPW65U6rqenzGieDCPNbxgPkKPKqewb/lj1F0sp+D3FCTcTeIl1yy538y3DkWpglbG2qT/Ip4wjaG5D5QubQXlgBYhrDS4B9FsvaLIzY8IVan9BYo=; X-UUID: 1b55ed1272584519a646441b1e70d0ed-20201106 Received: from mtkcas35.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1716411174; Fri, 06 Nov 2020 14:10:19 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by MTKMBS31DR.mediatek.inc (172.27.6.102) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 6 Nov 2020 14:10:17 +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:10:08 +0800 From: Chunfeng Yun To: Kishon Vijay Abraham I , Vinod Koul CC: Maxime Ripard , Chen-Yu Tsai , Kevin Hilman , Neil Armstrong , Jerome Brunet , Martin Blumenstingl , Ray Jui , Scott Branden , , Florian Fainelli , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Lubomir Rintel , Chunfeng Yun , Matthias Brugger , Randy Dunlap , Krzysztof Kozlowski , Colin Ian King , Ondrej Jirman , Rikard Falkeborn , Icenowy Zheng , Remi Pommarel , Lorenzo Pieralisi , Yue Wang , Hanjie Lin , Joe Perches , Bharat Gooty , Rayagonda Kokatanur , Peter Chen , Roger Quadros , Jyri Sarha , Sanket Parmar , Anil Varughese , Li Jun , Ma Feng , Wei Yongjun , , , , Subject: [PATCH v2 14/17] phy: samsung: convert to devm_platform_ioremap_resource Date: Fri, 6 Nov 2020 14:08:47 +0800 Message-ID: <1604642930-29019-14-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 Content-Type: text/plain X-TM-SNTS-SMTP: FC796B7022F1A2B384200FD8F2280FDFCAF8AABA395D4A6FE9B23C12774B49BB2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VXNlIGRldm1fcGxhdGZvcm1faW9yZW1hcF9yZXNvdXJjZSB0byBzaW1wbGlmeSBjb2RlDQoNClNp Z25lZC1vZmYtYnk6IENodW5mZW5nIFl1biA8Y2h1bmZlbmcueXVuQG1lZGlhdGVrLmNvbT4NClJl dmlld2VkLWJ5OiBLcnp5c3p0b2YgS296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+DQotLS0NCnYy OiBhZGQgUmV2aWV3ZWQtYnkgS3J6eXN6dG9mDQotLS0NCiBkcml2ZXJzL3BoeS9zYW1zdW5nL3Bo eS1leHlub3MtcGNpZS5jICAgICB8IDcgKystLS0tLQ0KIGRyaXZlcnMvcGh5L3NhbXN1bmcvcGh5 LWV4eW5vczUtdXNiZHJkLmMgIHwgNCArLS0tDQogZHJpdmVycy9waHkvc2Ftc3VuZy9waHktZXh5 bm9zNTI1MC1zYXRhLmMgfCA1ICstLS0tDQogZHJpdmVycy9waHkvc2Ftc3VuZy9waHktc2Ftc3Vu Zy11c2IyLmMgICAgfCA0ICstLS0NCiA0IGZpbGVzIGNoYW5nZWQsIDUgaW5zZXJ0aW9ucygrKSwg MTUgZGVsZXRpb25zKC0pDQoNCmRpZmYgLS1naXQgYS9kcml2ZXJzL3BoeS9zYW1zdW5nL3BoeS1l eHlub3MtcGNpZS5jIGIvZHJpdmVycy9waHkvc2Ftc3VuZy9waHktZXh5bm9zLXBjaWUuYw0KaW5k ZXggN2UyOGIxYWVhMGQxLi5jOThmZmY1YzFhYzggMTAwNjQ0DQotLS0gYS9kcml2Z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