lkml.org 
[lkml]   [2017]   [Dec]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v3 04/27] ipack: replace devm_ioremap_nocache with devm_ioremap
Date
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: industrypack-devel@lists.sourceforge.net
Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com>
---
drivers/ipack/devices/ipoctal.c | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/drivers/ipack/devices/ipoctal.c b/drivers/ipack/devices/ipoctal.c
index 75dd15d..d65e717 100644
--- a/drivers/ipack/devices/ipoctal.c
+++ b/drivers/ipack/devices/ipoctal.c
@@ -279,8 +279,7 @@ static int ipoctal_inst_slot(struct ipoctal *ipoctal, unsigned int bus_nr,
ipoctal->board_id = ipoctal->dev->id_device;

region = &ipoctal->dev->region[IPACK_IO_SPACE];
- addr = devm_ioremap_nocache(&ipoctal->dev->dev,
- region->start, region->size);
+ addr = devm_ioremap(&ipoctal->dev->dev, region->start, region->size);
if (!addr) {
dev_err(&ipoctal->dev->dev,
"Unable to map slot [%d:%d] IO space!\n",
@@ -294,9 +293,8 @@ static int ipoctal_inst_slot(struct ipoctal *ipoctal, unsigned int bus_nr,
(union scc2698_block __iomem *) addr;

region = &ipoctal->dev->region[IPACK_INT_SPACE];
- ipoctal->int_space =
- devm_ioremap_nocache(&ipoctal->dev->dev,
- region->start, region->size);
+ ipoctal->int_space = devm_ioremap(&ipoctal->dev->dev,
+ region->start, region->size);
if (!ipoctal->int_space) {
dev_err(&ipoctal->dev->dev,
"Unable to map slot [%d:%d] INT space!\n",
@@ -305,9 +303,8 @@ static int ipoctal_inst_slot(struct ipoctal *ipoctal, unsigned int bus_nr,
}

region = &ipoctal->dev->region[IPACK_MEM8_SPACE];
- ipoctal->mem8_space =
- devm_ioremap_nocache(&ipoctal->dev->dev,
- region->start, 0x8000);
+ ipoctal->mem8_space = devm_ioremap(&ipoctal->dev->dev,
+ region->start, 0x8000);
if (!ipoctal->mem8_space) {
dev_err(&ipoctal->dev->dev,
"Unable to map slot [%d:%d] MEM8 space!\n",
--
1.8.3.1
\
 
 \ /
  Last update: 2017-12-23 12:06    [W:0.026 / U:0.476 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site