[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1514026803-33256-1-git-send-email-xieyisheng1@huawei.com>
Date: Sat, 23 Dec 2017 19:00:03 +0800
From: Yisheng Xie <xieyisheng1@...wei.com>
To: <linux-kernel@...r.kernel.org>, <gregkh@...uxfoundation.org>
CC: <ysxie@...mail.com>, Yisheng Xie <xieyisheng1@...wei.com>,
Boris Brezillon <boris.brezillon@...e-electrons.com>,
Richard Weinberger <richard@....at>,
Marek Vasut <marek.vasut@...il.com>,
Cyrille Pitchen <cyrille.pitchen@...ev4u.fr>,
<linux-mtd@...ts.infradead.org>
Subject: [PATCH v3 14/27] mtd: nand: replace devm_ioremap_nocache with devm_ioremap
Default ioremap is ioremap_nocache, so devm_ioremap has the same
function with devm_ioremap_nocache, which can just be killed to
save the size of devres.o
This patch is to use use devm_ioremap instead of devm_ioremap_nocache,
which should not have any function change but prepare for killing
devm_ioremap_nocache.
Cc: Boris Brezillon <boris.brezillon@...e-electrons.com>
Cc: Richard Weinberger <richard@....at>
Cc: Marek Vasut <marek.vasut@...il.com>
Cc: Cyrille Pitchen <cyrille.pitchen@...ev4u.fr>
Cc: linux-mtd@...ts.infradead.org
Signed-off-by: Yisheng Xie <xieyisheng1@...wei.com>
---
drivers/mtd/nand/fsl_upm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/nand/fsl_upm.c b/drivers/mtd/nand/fsl_upm.c
index a88e2cf..30a8e9f 100644
--- a/drivers/mtd/nand/fsl_upm.c
+++ b/drivers/mtd/nand/fsl_upm.c
@@ -291,8 +291,8 @@ static int fun_probe(struct platform_device *ofdev)
fun->wait_flags = FSL_UPM_WAIT_RUN_PATTERN |
FSL_UPM_WAIT_WRITE_BYTE;
- fun->io_base = devm_ioremap_nocache(&ofdev->dev, io_res.start,
- resource_size(&io_res));
+ fun->io_base = devm_ioremap(&ofdev->dev, io_res.start,
+ resource_size(&io_res));
if (!fun->io_base) {
ret = -ENOMEM;
goto err2;
--
1.8.3.1
Powered by blists - more mailing lists