Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3244898ybl; Sun, 15 Dec 2019 05:56:41 -0800 (PST) X-Google-Smtp-Source: APXvYqy6/AZWee+sVWYhjQTAOl7QzNEidnbuSicazuCnS6KwTVgaG+jw93cger/S95cAJmGvwQdA X-Received: by 2002:aca:c389:: with SMTP id t131mr700298oif.102.1576418201429; Sun, 15 Dec 2019 05:56:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576418201; cv=none; d=google.com; s=arc-20160816; b=FnKj5O8dGcN0sd/3zIa3xobOSKFcSZ0IgdPuRCUjiSG8WwYKSfoHfstNU0uLQ7Aw1C DwbYmK7YZNcUwKG4HtIf8FXhhAWhjzqVuzDgU83GpBuUuFmPbERCHVJ5Z1CNkSBtSdai IpwrpQyRjhyXKkQYICfGrYAIpA1FauUiYg6+M9SlDpEsAZvcsLbpiv+k3NasBVqTeotK ApA/pnmiaWcbLKMyt4qOhiqcHevHvHHaGL2UcTy1nM5oFHcYYg02TRCoB3AceC6FpS/r 4XIMgxmZKNXINfaKMFQ5YVKKGucfNK2JbzOaql7KiIFil/hkquFBWWJQP+tX8yCJM39E 8ELg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=F+7PYqMmtcZUrcYIJM/i90K58GWESr+2/oVNmo6E2TM=; b=RcYyYuoobLqLN9I4SZp7C+6av0g1TkEw/TAI5ZGWBQrJh2oyn7uhx/q+p4G0EVXsve jPzOrcaOefiFFdX4lw47/B2GvV6Gt56IHYj9fot7sDogysNvzJ7hFeHBIW+h4TIIsDV2 bcBZcX+EMSIVApPtc9kMUKonx+ZjHiGNM0AZ042l846JOSQ0HuEqHOzUcDJU4MQxq6hK OJmqVC6gGH9BrzRnZvELZJnaLyMhvZ/ZfXiArjJaYQs61TzhHBhagL8X3aleXBwNqmgw 9QxmM72iyJmZO3Eb1hAF/jpzONfmb15ExeV9UjXsZbQ14iWmct8bLRKdzC+AdYnEw7Zs bYfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GweBf684; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f190si8837254oig.229.2019.12.15.05.55.51; Sun, 15 Dec 2019 05:56:41 -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=@gmail.com header.s=20161025 header.b=GweBf684; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726231AbfLONxT (ORCPT + 99 others); Sun, 15 Dec 2019 08:53:19 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:36225 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726135AbfLONxT (ORCPT ); Sun, 15 Dec 2019 08:53:19 -0500 Received: by mail-pg1-f194.google.com with SMTP id k3so2156378pgc.3; Sun, 15 Dec 2019 05:53:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=F+7PYqMmtcZUrcYIJM/i90K58GWESr+2/oVNmo6E2TM=; b=GweBf684G0VM3rBai6Cr2ab3OMQJwlkinQuGIWtcWn/srhjrmrA/slPrMrg1+EiBy4 Rmn1eMVfS5LEKL+G0W4GEAKhAXl3hSOkWhlUAeZDNMQnMp2TsPyXD/Glq/xykBeugbEw nvCEi0dqz5FwIAZ4AIV7EAZC00Y+IkUIqXcPYsR/iK4pykrpk0WDli1j7IuxDtUJIppv N97Ohd8T4r3+yzzlEBemMbyLbQ19ZM63TA+U+vJqQ1K6yqBsBN1JwIoFfRMshd/GshNK RH4/4N1OSuq+5DOolt+LJS5G8K0LmOXdoLjH/BN2kyvaig0H8MBuKZZKrC6j7GUDWHaa tEiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=F+7PYqMmtcZUrcYIJM/i90K58GWESr+2/oVNmo6E2TM=; b=Mm6CcFujJmo35GlhyNF/TuH7nJvbSyCuhs1SlUIhDIfEhEoCHR8H4Y2GpcVoGPj5KO NeLhTOhPkxxZYY/2Ch2DO5cE/3SJOpLBrBRNzW6ABvLbuQeTHC8LrKr252FJLjYo39FN Q7Eh7BT+LpO7meg2ieOeJPMCalxsUIOECV8tAvH2R/L8w2FlvKHOguQJgosiz9A0C6ze +x909SJt6Io3JX+WKaYSMXwkXyyxogn02nQh6ZAQkh5JKSY+g6KvLeDrzHL49yNUO+vJ oB3wF+ifiCKFiaqk2GCyDQQ/JKbEpJ2pgFSdfl+TXgT8szzVEuWLoPgx/CW0iDFJ3hJJ 6MAw== X-Gm-Message-State: APjAAAXf31ofP2qHPQA7es2zt/KIV11hyt3eWVB2PKpAVhNt4mt8gxMI 6MPVq4o6RBcdFBqmKv7EQnU= X-Received: by 2002:aa7:9839:: with SMTP id q25mr11101715pfl.161.1576417998524; Sun, 15 Dec 2019 05:53:18 -0800 (PST) Received: from localhost ([2001:19f0:6001:12c8:5400:2ff:fe72:6403]) by smtp.gmail.com with ESMTPSA id a10sm18291446pfc.35.2019.12.15.05.53.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2019 05:53:17 -0800 (PST) From: Yangtao Li To: cw00.choi@samsung.com, myungjoo.ham@samsung.com, kyungmin.park@samsung.com, heiko@sntech.de Cc: linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Yangtao Li Subject: [PATCH] PM / devfreq: rockchip-dfi: convert to devm_platform_ioremap_resource Date: Sun, 15 Dec 2019 13:53:15 +0000 Message-Id: <20191215135315.30656-1-tiny.windzz@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 = &pdev->dev; struct rockchip_dfi *data; - struct resource *res; struct devfreq_event_desc *desc; struct device_node *np = pdev->dev.of_node, *node; @@ -185,8 +184,7 @@ static int rockchip_dfi_probe(struct platform_device *pdev) if (!data) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - data->regs = devm_ioremap_resource(&pdev->dev, res); + data->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(data->regs)) return PTR_ERR(data->regs); -- 2.17.1