aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/scb2_flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/maps/scb2_flash.c')
-rw-r--r--drivers/mtd/maps/scb2_flash.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/mtd/maps/scb2_flash.c b/drivers/mtd/maps/scb2_flash.c
index 71796137e97b..c77b68c9412f 100644
--- a/drivers/mtd/maps/scb2_flash.c
+++ b/drivers/mtd/maps/scb2_flash.c
@@ -69,8 +69,7 @@ static struct map_info scb2_map = {
69}; 69};
70static int region_fail; 70static int region_fail;
71 71
72static int 72static int scb2_fixup_mtd(struct mtd_info *mtd)
73scb2_fixup_mtd(struct mtd_info *mtd)
74{ 73{
75 int i; 74 int i;
76 int done = 0; 75 int done = 0;
@@ -133,8 +132,8 @@ scb2_fixup_mtd(struct mtd_info *mtd)
133/* CSB5's 'Function Control Register' has bits for decoding @ >= 0xffc00000 */ 132/* CSB5's 'Function Control Register' has bits for decoding @ >= 0xffc00000 */
134#define CSB5_FCR 0x41 133#define CSB5_FCR 0x41
135#define CSB5_FCR_DECODE_ALL 0x0e 134#define CSB5_FCR_DECODE_ALL 0x0e
136static int 135static int scb2_flash_probe(struct pci_dev *dev,
137scb2_flash_probe(struct pci_dev *dev, const struct pci_device_id *ent) 136 const struct pci_device_id *ent)
138{ 137{
139 u8 reg; 138 u8 reg;
140 139
@@ -197,8 +196,7 @@ scb2_flash_probe(struct pci_dev *dev, const struct pci_device_id *ent)
197 return 0; 196 return 0;
198} 197}
199 198
200static void 199static void scb2_flash_remove(struct pci_dev *dev)
201scb2_flash_remove(struct pci_dev *dev)
202{ 200{
203 if (!scb2_mtd) 201 if (!scb2_mtd)
204 return; 202 return;