Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp12385069ybl; Sat, 28 Dec 2019 11:07:49 -0800 (PST) X-Google-Smtp-Source: APXvYqxQVxmw0t3JSgsShQyrjBrOFm8OlhP8f0olLXTmVYfCltb1jKRUIKg0McQG0FgsQj30eV06 X-Received: by 2002:a05:6830:1615:: with SMTP id g21mr66810548otr.49.1577560068913; Sat, 28 Dec 2019 11:07:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577560068; cv=none; d=google.com; s=arc-20160816; b=rfZ5xwX19kezssivP6fwMDoCLPomj319Du7NgH05AR8JMhLwoBTGNUG+fBLye7mcov /L4rrDYV6fq5xrN2JCgT91OruunMEaLNQjonEJNwhX9Qt7oe7DfqZp26hncdbNrr+vJj uvsrSWdZPID1BkmcwTURXmTYQsh80a5avsEksiDCWeiW+1Iyo/8mOP1xCvaFGRt0dK2f qdoPyD8os4hPoZ29prWazdhlXvKJj1MTLX0IEY0JqSbYfTQJ2pJKhhETEK/3/VLVMLsy NImIEdhtFRONka74LRKgQY57S/Gv8IMF1XPklaVVE3eo63tddt8rxIl6TONpo5imCqWB He6g== 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=ExkNmsId9T+IvJawOK9l5XqVWSk7e/vQjn+tqWFgqBA=; b=qm09LdtEoL+2aw1YwPn95sZGdaWIzu6lfIvHJe9QlNCY6JRzGF+d5+ef0gxBBoAZ95 3kKn95o6mz7k7lSmIB/d+jmsvJeZjw7ouhIS9iKvtAG7XoXtMot9gAhT+hOlAi8/NS+E 7Y0EQAGnccMZTBIrwNjptu8iNtbQRetl9h6dTG3EQ4cdlaxBApXy6yib/B7RZl4JcTH+ if1gSQBQD/Fpz+vMujNiqe2e7ZB0g5ee1AR+4BhesUVUqinZwyggu1/sChGchMh+iws4 /YLQnKG6XG0E83ZzNEnixrl4tzsh8ruuMBENS+jo9Obk0+exj+k9hbXtPjmnGflSxQVx SIOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ce+EFQyT; 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 a5si20165961oto.204.2019.12.28.11.07.34; Sat, 28 Dec 2019 11:07:48 -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=Ce+EFQyT; 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 S1726442AbfL1TGe (ORCPT + 99 others); Sat, 28 Dec 2019 14:06:34 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:41348 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726371AbfL1TGd (ORCPT ); Sat, 28 Dec 2019 14:06:33 -0500 Received: by mail-pg1-f196.google.com with SMTP id x8so16072826pgk.8 for ; Sat, 28 Dec 2019 11:06:33 -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=ExkNmsId9T+IvJawOK9l5XqVWSk7e/vQjn+tqWFgqBA=; b=Ce+EFQyTJmQ93Ihqs4/E8gy7ty2ORo+rR2upNWrFHg8HE55TplCoOOTq7fkVCLYpEA /B0gQ27VwJJka5SrxxJ23JpDXDkVBoCdBdq0LWKJZb3GfmD0FXxRv7ynK9cvVHCcmlwq 8LlKAUfIafn4yBgpiICP65i2jMgUtyJ13YKAE5u16H4o3lqE8pCX7uzLNIBPfmxnu8gb cCphqsBKkLlBkRPe/Rg/pt18syTCsND0VU7MDo53p5LQGPA8HU7osvEqMK6x+5v/wM0b NGQq3H8GrKK1WCRvn9t5s4Q/tI4H1UcmjqKdLeDZXSvTuXnQ4jwmJckROY/y7+eqTndn XJ/g== 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=ExkNmsId9T+IvJawOK9l5XqVWSk7e/vQjn+tqWFgqBA=; b=sKL9+nETrrfL7agtrZA2vA3ywlBVlwQpEmfZmZzus6pX/DbzOIkliv0FR1wt3/TF5/ Xgjg/OODfchhmJFy9PLngkNzZ+WHGLuQSUWcn1/tnVS8cfZIrKnCeEr0/qWdcx8VfUz+ rTPX0ceqM+vANaqMwWQzi6soQb6kj/AxZIgnYu232Avhbr/uSvLJGy1zYeTSS+fJikJZ 3AjLiuMGVsSYXXaIiLkNTBB727BY5q2iOWGyNs1ON9Qrm7soBXF2G87QRX6C3BRxPhae 59qwRc/6skSTHK4src3f19ff90aC/9WfHsxy2jgPZ2+1v82joSMgLElvb/gxV1ghwIKN 4EgQ== X-Gm-Message-State: APjAAAVATu17OoJEoUbMWycZ7jzs/RZq5pWIbxTbuwWQ/wDG3h18DpK2 Ds0HZOk3FQ28xEBkpEYEvJ4= X-Received: by 2002:a63:1502:: with SMTP id v2mr61363657pgl.376.1577559993191; Sat, 28 Dec 2019 11:06:33 -0800 (PST) Received: from localhost ([2001:19f0:6001:12c8:5400:2ff:fe72:6403]) by smtp.gmail.com with ESMTPSA id x132sm44273943pfc.148.2019.12.28.11.06.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 28 Dec 2019 11:06:32 -0800 (PST) From: Yangtao Li To: jk@ozlabs.org, joel@jms.id.au, alistair@popple.id.au, eajames@linux.ibm.com, andrew@aj.id.au, linux-fsi@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: Yangtao Li Subject: [PATCH] fsi: aspeed: convert to devm_platform_ioremap_resource Date: Sat, 28 Dec 2019 19:06:31 +0000 Message-Id: <20191228190631.26777-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/fsi/fsi-master-aspeed.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/fsi/fsi-master-aspeed.c b/drivers/fsi/fsi-master-aspeed.c index f49742b310c2..edd0b287e7b7 100644 --- a/drivers/fsi/fsi-master-aspeed.c +++ b/drivers/fsi/fsi-master-aspeed.c @@ -422,7 +422,6 @@ static int aspeed_master_init(struct fsi_master_aspeed *aspeed) static int fsi_master_aspeed_probe(struct platform_device *pdev) { struct fsi_master_aspeed *aspeed; - struct resource *res; int rc, links, reg; __be32 raw; @@ -432,8 +431,7 @@ static int fsi_master_aspeed_probe(struct platform_device *pdev) aspeed->dev = &pdev->dev; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - aspeed->base = devm_ioremap_resource(&pdev->dev, res); + aspeed->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(aspeed->base)) return PTR_ERR(aspeed->base); -- 2.17.1