Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1039968pxb; Thu, 5 Nov 2020 22:12:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwK26urp4ADBZr1tS/N8j6318fdgc3tMPFZINXQZO8RWO7Y2ZwI0sZ3HL7WQJXdZBGswL3S X-Received: by 2002:a17:906:171a:: with SMTP id c26mr543422eje.380.1604643148947; Thu, 05 Nov 2020 22:12:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604643148; cv=none; d=google.com; s=arc-20160816; b=JbnJk5q/u2d2moIl9ijSd3i74KD2Bzzb0CDdlv2PKwP0eoDzI+m7frNuOcL7yZ1pFE uB6TB5FmgVz7yk91hyBQHBlK5y4Hl5ukkVTEsKnq0e5g/uVHj3l1RFgjUxV2H6uc7YO6 olndQ8aq1XXaExZxrTp5UjTxinHzN1QmDyVvHLewobNKBPb/nsMA3Tohru6SyBrw8Ygt z25f+OakOzvC5FBflxv61tfqpaBGO6pnf6XapkrP8+xD1nYl4YP5O6VFX0n+20XVnbLR HmjSWFIEkIc3QA4of7QNRopvrHr4j4QF5i3UzjO8Q712ejIdcpJSVXmO/H8yN5+S+uQ2 kt8g== 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=RAGgnDBBxlUMea+BLDILWdxtJ1+gnngFehm4heLDSX0=; b=Imw60U02PmAlml64/4CoD2OxCbYaaF/3eIq8mMn5kxX+ObjjoofARklUWjra7aXq8E HpOyg4joAOG2klwQGoFAxDJx608YXvme0DLfCv8Z2PbJWO4ooJl5/BWzaHIiUZBhigUQ Bmar1ULc1rXG9S/YD/0Cc7DG49ZsbJWfE4T4+cdf7ix5HR3R1y0IN9fHahKwEs2EgV3N 0NzqTv2Q8lzh1K/8gp5mB0TcDKgAeB3pHRJaayYtOhdbZJD6pMXRGIyr7m3OQvjEXzhK UVQ4yQv+KpiAy7jo0H50H19w3szXxSsaWf3ykoI8Zyta9Mg+Fs+Vi+daVWSkF8h6w866 pA9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=RxBwi26i; 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 k8si155735eje.152.2020.11.05.22.12.06; Thu, 05 Nov 2020 22:12:28 -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=RxBwi26i; 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 S1726327AbgKFGKL (ORCPT + 99 others); Fri, 6 Nov 2020 01:10:11 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:24706 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726274AbgKFGKL (ORCPT ); Fri, 6 Nov 2020 01:10:11 -0500 X-UUID: 6fb65ccfaca94e51aadf48b7cc52076e-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=RAGgnDBBxlUMea+BLDILWdxtJ1+gnngFehm4heLDSX0=; b=RxBwi26iQurE18reZ7omv2YDBE2t6EKWSd2tKP31TEvCDmhOeZZjb2rWdIzorgWASQMSN5pgayh0QPm4dOIVaAc94Evdut/LzZc8D+eqQo/2Zzv4g6Yxt+t4weFTtJPhQLdzWKKlS4dlaXsFwJXLi8MZmQRlBfH7v2463b+YJmI=; X-UUID: 6fb65ccfaca94e51aadf48b7cc52076e-20201106 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1773171261; Fri, 06 Nov 2020 14:10:04 +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:10:02 +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:54 +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 12/17] phy: renesas: convert to devm_platform_ioremap_resource Date: Fri, 6 Nov 2020 14:08:45 +0800 Message-ID: <1604642930-29019-12-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: 32FD6B92CE71D460B2062F12CC7764D56DBEC637CAE1AB0F201200AE9749D5DE2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VXNlIGRldm1fcGxhdGZvcm1faW9yZW1hcF9yZXNvdXJjZSB0byBzaW1wbGlmeSBjb2RlDQoNClNp Z25lZC1vZmYtYnk6IENodW5mZW5nIFl1biA8Y2h1bmZlbmcueXVuQG1lZGlhdGVrLmNvbT4NCi0t LQ0KdjI6IG5vIGNoYW5nZXMNCi0tLQ0KIGRyaXZlcnMvcGh5L3JlbmVzYXMvcGh5LXJjYXItZ2Vu Mi5jICAgICAgfCA0ICstLS0NCiBkcml2ZXJzL3BoeS9yZW5lc2FzL3BoeS1yY2FyLWdlbjMtcGNp ZS5jIHwgNCArLS0tDQogZHJpdmVycy9waHkvcmVuZXNhcy9waHktcmNhci1nZW4zLXVzYjIuYyB8 IDQgKy0tLQ0KIGRyaXZlcnMvcGh5L3JlbmVzYXMvcGh5LXJjYXItZ2VuMy11c2IzLmMgfCA0ICst LS0NCiA0IGZpbGVzIGNoYW5nZWQsIDQgaW5zZXJ0aW9ucygrKSwgMTIgZGVsZXRpb25zKC0pDQoN CmRpZmYgLS1naXQgYS9kcml2ZXJzL3BoeS9yZW5lc2FzL3BoeS1yY2FyLWdlbjIuYyBiL2RyaXZl cnMvcGh5L3JlbmVzYXMvcGh5LXJjYXItZ2VuMi5jDQppbmRleCAyZTI3OWFjMGZhNGQuLmMzNzVh NDY3NmEzZCAxMDA2NDQNCi0tLSBhL2RyaXZlcnMvcGh5L3JlbmVzYXMvcGh5LXJjYXItZ2VuMi5j DQorKysgYi9kcml2ZXJzL3BoeS9yZW5lc2FzL3BoeS1yY2FyLWdlbjIu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