Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5850874ybl; Tue, 10 Dec 2019 12:32:53 -0800 (PST) X-Google-Smtp-Source: APXvYqzf9VM+w28TG37V+zwordnDi0U2p98+bLE4lGsi3XZyQOWTNsR8HkfsSWpvo8oNke1voc/J X-Received: by 2002:a54:4f14:: with SMTP id e20mr703010oiy.84.1576009973032; Tue, 10 Dec 2019 12:32:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576009973; cv=none; d=google.com; s=arc-20160816; b=bn29URRVbjWullnZ4zwufci7DKdLn+VJO7etm+Hg0nhBHaJDdRf7ifKd9r9PRVDT9k ggaUr/J1H6TW8DdxY1CPeUu0/E+xh7RTzf1RV2gfhdb+6M2YtYnt3GaoEKt+bmgt3TlV tsE4HObL8FHFZi3IVOeJg67ozveCQtzV33HKaPuX3b8UJGUgZ+LODUtVTv0VED3BNPlF 83JINmPni/qH4osyqQ0iqAFIA5E7MQ6N+AUsoJuyZ+Mhnm6LhAKb3RHVW7SXMf4ZpHid UUZz5yRa7CwpGGL0tegi1znPZQUNkr8YGqHXYGEBfEIHoFhHqnLKiNhniB540PJ99dvn 3/VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=aJjh4TX7tIu5i+rCa4IwoPtzkcCu3DVe+AmQ4LsjGFE=; b=Rkj+GHLukJF2DUh0bczAsn+s/6GUu6cHbIhUySZxUCmN+KpqaddM1KXUto+TWOplAt jUjycaTgLjBx9FYMFIHmm1p4ZXS3VNEwx1aUJfIudZ2M2iYDIBAcPkfdHOK9OdrqGhvH BxU749JyCjIbT4n7QAu8hTMQ/XzBy1LoOl0jtNWxdtNo1j6Kr4kXpGAFfYWuH7gxWh7e EKboqqkMPOITxFlVvOYrnk9vVUH7su3+Xx9+cMJs8iX/7Kcoo2gQpbBehZDIx2m06MZu 3Slaj62P8i2F5JHqcLDHj6tX/qN0M2dT/X9Kc7hOyGBjxqs+zIPpN2Aq0rZ53yabAsBG aC+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gZQzknzI; 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 f20si2405542oti.123.2019.12.10.12.32.40; Tue, 10 Dec 2019 12:32:53 -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=gZQzknzI; 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 S1727109AbfLJUcG (ORCPT + 99 others); Tue, 10 Dec 2019 15:32:06 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:44384 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727030AbfLJUcD (ORCPT ); Tue, 10 Dec 2019 15:32:03 -0500 Received: by mail-pg1-f195.google.com with SMTP id x7so9417664pgl.11 for ; Tue, 10 Dec 2019 12:32:02 -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:in-reply-to:references; bh=aJjh4TX7tIu5i+rCa4IwoPtzkcCu3DVe+AmQ4LsjGFE=; b=gZQzknzIqIApPvJCk1iRFQHzHlvudGFa4DkvphsH88qXsxvVZFHlomcdllkrTb27YN yUfG0AmPrk+30Tye1b5PugmQGyqJDdZqm3lInbKWgQX0ckY6j4kr0krsu9Sl+YtCGg/8 Nl+mstS5YXfIlY74w+zEx6qGpzpz7tvHYtDiS5u0zk8wCbvCfswNmZzCnOAYUspw0DFb nOGUg6vMezl4ZafiDAMU8aAp8EhiyG/vR6ux/mAJbnxQ4Q/8lawY52cvRwL9tyuy6sHO EVDGTQC6kfmIBDfqJbS2sL1+9nuGYq+/3zmIy5OROU2Io97zdmX1ImU/BeTwYp5FZRtK RSxA== 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:in-reply-to :references; bh=aJjh4TX7tIu5i+rCa4IwoPtzkcCu3DVe+AmQ4LsjGFE=; b=pUoUt18kG0paLS8Q8vORTWPK4gUWz9CoZgA6WiSDrwHiukue5hvFYnmFV1W3TIDHrh hWc/L4jPThDo1QvAPrhtFzZ1CS2hJBJn0v/kD9cyjaGZeGUPmSHl/Hjsa7LmydwtAfrx A/dFtkqHw5XeCTCnDWABfmBYkDKviT0/3zAC5bG8O54+fE2Wk22zjivrOf4rczI0vgcO 8mUgDgW3o2dxZ0GprSvWuOnRcjFau106hxWKetNnGsAX2LHbYB43Xh8PbbU7niOfqyqj FkTHaQ+PxFnhgPveeSYR4KqQVL+pDw0BP68Lg5CZiAaKQkiRpXEB+5P9YkRYeZyBOSlM QATA== X-Gm-Message-State: APjAAAVFLsVEL/2w0uFigCThYVtE2IyhONTNMHOvwWMr+sMKF2dXzb3R 2zseilWrn/2SZ8FCIjH5c5w= X-Received: by 2002:a63:4d1b:: with SMTP id a27mr17289782pgb.352.1576009922481; Tue, 10 Dec 2019 12:32:02 -0800 (PST) Received: from localhost ([2001:19f0:6001:12c8:5400:2ff:fe72:6403]) by smtp.gmail.com with ESMTPSA id w6sm4839677pfq.99.2019.12.10.12.32.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Dec 2019 12:32:01 -0800 (PST) From: Yangtao Li To: gregkh@linuxfoundation.org, rafael@kernel.org, srinivas.kandagatla@linaro.org, vz@mleia.com, khilman@baylibre.com, mripard@kernel.org, wens@csie.org, andriy.shevchenko@linux.intel.com, mchehab+samsung@kernel.org, mans@mansr.com, treding@nvidia.com, suzuki.poulose@arm.com, bgolaszewski@baylibre.com, tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, Yangtao Li Subject: [PATCH 3/5] nvmem: meson-mx-efuse: convert to devm_platform_ioremap_resource Date: Tue, 10 Dec 2019 20:31:48 +0000 Message-Id: <20191210203149.7115-4-tiny.windzz@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191210203149.7115-1-tiny.windzz@gmail.com> References: <20191210203149.7115-1-tiny.windzz@gmail.com> 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/nvmem/meson-mx-efuse.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/nvmem/meson-mx-efuse.c b/drivers/nvmem/meson-mx-efuse.c index 07c9f38c1c60..24c6e8b15987 100644 --- a/drivers/nvmem/meson-mx-efuse.c +++ b/drivers/nvmem/meson-mx-efuse.c @@ -194,7 +194,6 @@ static int meson_mx_efuse_probe(struct platform_device *pdev) { const struct meson_mx_efuse_platform_data *drvdata; struct meson_mx_efuse *efuse; - struct resource *res; drvdata = of_device_get_match_data(&pdev->dev); if (!drvdata) @@ -204,8 +203,7 @@ static int meson_mx_efuse_probe(struct platform_device *pdev) if (!efuse) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - efuse->base = devm_ioremap_resource(&pdev->dev, res); + efuse->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(efuse->base)) return PTR_ERR(efuse->base); -- 2.17.1