| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * linux/drivers/mtd/maps/pci.c |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2001 Russell King, All rights reserved. |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 8 | | - * published by the Free Software Foundation. |
|---|
| 9 | 6 | * |
|---|
| 10 | 7 | * Generic PCI memory map driver. We support the following boards: |
|---|
| 11 | 8 | * - Intel IQ80310 ATU. |
|---|
| .. | .. |
|---|
| 97 | 94 | map->map.write = mtd_pci_write8, |
|---|
| 98 | 95 | |
|---|
| 99 | 96 | map->map.size = 0x00800000; |
|---|
| 100 | | - map->base = ioremap_nocache(pci_resource_start(dev, 0), |
|---|
| 97 | + map->base = ioremap(pci_resource_start(dev, 0), |
|---|
| 101 | 98 | pci_resource_len(dev, 0)); |
|---|
| 102 | 99 | |
|---|
| 103 | 100 | if (!map->base) |
|---|
| .. | .. |
|---|
| 191 | 188 | map->map.read = mtd_pci_read32, |
|---|
| 192 | 189 | map->map.write = mtd_pci_write32, |
|---|
| 193 | 190 | map->map.size = len; |
|---|
| 194 | | - map->base = ioremap_nocache(base, len); |
|---|
| 191 | + map->base = ioremap(base, len); |
|---|
| 195 | 192 | |
|---|
| 196 | 193 | if (!map->base) |
|---|
| 197 | 194 | return -ENOMEM; |
|---|