[PATCH v3 04/27] ipack: replace devm_ioremap_nocache with devm_ioremap
From: Yisheng Xie
Date: Sat Dec 23 2017 - 06:06:12 EST
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@xxxxxxxxxxxxxxxxxxx>
Cc: industrypack-devel@xxxxxxxxxxxxxxxxxxxxx
Signed-off-by: Yisheng Xie <xieyisheng1@xxxxxxxxxx>
---
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