Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3331504ybl; Sun, 15 Dec 2019 07:33:34 -0800 (PST) X-Google-Smtp-Source: APXvYqyIeQSUT4A5gAse6ExqE0FiGcGE/fAP3lDIxiuhMYzkO5WDfZnU0arN4Qg/ywl4sJFfVghs X-Received: by 2002:a9d:eea:: with SMTP id 97mr25227469otj.177.1576424014756; Sun, 15 Dec 2019 07:33:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576424014; cv=none; d=google.com; s=arc-20160816; b=Y4jtIBN0ZyeulCztpy0HhcWtEz5rniwp1N2l+o0iV/AVCT6lOL8GB+gU7uKcFMy6hq uwwT1FwO+mBXkx0FfKHrHEvbPCGn9nSJQHoV5argfL4YbB1g4F96b/JNmRKx/Oxx9Zy0 +DZXP4/1aasbFpP6sTptjte2ghEoVP1XI+XkesA5c0h5VkYMM34K98Nnz15NNHSA+bQ2 5f8pHVRwXM7+iOnaJK+1myCe1q73qkJ4TBDK4qEjxqGfa/WzvgvVt0GnHhP5AG3DKE21 FYxLnzw5NVhuQEw2GpEJtLX5oe1JJrACtCUW0i/BsjzZ1hxwmc3UACsAUTIeZTzJeigX 63FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=MThiSU16LGANvGHogPvu20hKn9EAhBUgzsgY6ks7mgo=; b=Ospo0pxhugtmLJ+zP++TwlTqmll1McBd2LFAXl5GKUhr5zLO8SQ2HciCRz3U3k8JBt ccUvWOo+iHSkyXWNs4HRyJgKlZNpjkLFtsyEZacZ5FHV41jOHxa5qlKJICfGf4JczwFC 0LxolTszxdcI6zJA7saFhJ9am1hTuE54yVUfAZFDtkvmmhN9IeRVXMXLWjYi+mj3SrF8 jqq6ZHi8LQgIResTaROTVzLjnvL928rr5douBvI10o7siKklxi+fI9UiOumWJH5Zk2IZ oLbqzu8WyMEwtsZjT/cU+f4ydMy+nPdVHOhJgWu56fyKlAQ/UDHVV8539HfNKmhVUENS yJ/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XA8CAtgr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a20si9373684otf.271.2019.12.15.07.33.23; Sun, 15 Dec 2019 07:33:34 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=XA8CAtgr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726695AbfLOPcY (ORCPT + 99 others); Sun, 15 Dec 2019 10:32:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:58636 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726548AbfLOPcY (ORCPT ); Sun, 15 Dec 2019 10:32:24 -0500 Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D4C1B24654; Sun, 15 Dec 2019 15:32:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576423943; bh=cBaLB/vop1iNW5EhmBkuBZLdeEQ64p17vwMy2jCwDGo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=XA8CAtgrWX4w9Beb1YGF1wTUZcDXjZ1RjuIwfwqVeruPPYzo1qLQX9qOVjZ8JwUyz 56Xm98KclPXV2PrUbpJdbQyHqFqWXTFm2aPiLLkhN8tPUFTQeRc5hDTtQh8dRSgn2V x+n8M1c9ScFSp5c+xJv3QcJxMLc1N66X2KnumnPA= Received: by mail-lf1-f47.google.com with SMTP id r14so2478926lfm.5; Sun, 15 Dec 2019 07:32:22 -0800 (PST) X-Gm-Message-State: APjAAAUtd7e6L91n7i6pZtG6Ojj4GlSx67xe5clra5E3xQWd4MSikxD9 1+A73E97Z8iQ6RCityJBX7t1D1kqN1sVdDDU/OA= X-Received: by 2002:ac2:531b:: with SMTP id c27mr13906871lfh.91.1576423941027; Sun, 15 Dec 2019 07:32:21 -0800 (PST) MIME-Version: 1.0 References: <20191215135315.30656-1-tiny.windzz@gmail.com> In-Reply-To: <20191215135315.30656-1-tiny.windzz@gmail.com> From: Chanwoo Choi Date: Mon, 16 Dec 2019 00:31:44 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] PM / devfreq: rockchip-dfi: convert to devm_platform_ioremap_resource To: Yangtao Li Cc: Chanwoo Choi , MyungJoo Ham , Kyungmin Park , =?UTF-8?Q?Heiko_St=C3=BCbner?= , Linux PM list , linux-arm-kernel , "open list:ARM/Rockchip SoC..." , linux-kernel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2019=EB=85=84 12=EC=9B=94 15=EC=9D=BC (=EC=9D=BC) =EC=98=A4=ED=9B=84 10:53,= Yangtao Li =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > Use devm_platform_ioremap_resource() to simplify code. > > Signed-off-by: Yangtao Li > --- > drivers/devfreq/event/rockchip-dfi.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/devfreq/event/rockchip-dfi.c b/drivers/devfreq/event= /rockchip-dfi.c > index 5d1042188727..cc5d4c01af0b 100644 > --- a/drivers/devfreq/event/rockchip-dfi.c > +++ b/drivers/devfreq/event/rockchip-dfi.c > @@ -177,7 +177,6 @@ static int rockchip_dfi_probe(struct platform_device = *pdev) > { > struct device *dev =3D &pdev->dev; > struct rockchip_dfi *data; > - struct resource *res; > struct devfreq_event_desc *desc; > struct device_node *np =3D pdev->dev.of_node, *node; > > @@ -185,8 +184,7 @@ static int rockchip_dfi_probe(struct platform_device = *pdev) > if (!data) > return -ENOMEM; > > - res =3D platform_get_resource(pdev, IORESOURCE_MEM, 0); > - data->regs =3D devm_ioremap_resource(&pdev->dev, res); > + data->regs =3D devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(data->regs)) > return PTR_ERR(data->regs); > > -- > 2.17.1 > Applied it. --=20 Best Regards, Chanwoo Choi