diff options
Diffstat (limited to 'drivers/mtd/maps')
-rw-r--r-- | drivers/mtd/maps/esb2rom.c | 2 | ||||
-rw-r--r-- | drivers/mtd/maps/intel_vr_nor.c | 3 | ||||
-rw-r--r-- | drivers/mtd/maps/pci.c | 6 | ||||
-rw-r--r-- | drivers/mtd/maps/physmap_of.c | 2 | ||||
-rw-r--r-- | drivers/mtd/maps/pismo.c | 15 | ||||
-rw-r--r-- | drivers/mtd/maps/scb2_flash.c | 10 |
6 files changed, 17 insertions, 21 deletions
diff --git a/drivers/mtd/maps/esb2rom.c b/drivers/mtd/maps/esb2rom.c index ff8681a25831..f784cf0caa13 100644 --- a/drivers/mtd/maps/esb2rom.c +++ b/drivers/mtd/maps/esb2rom.c | |||
@@ -145,7 +145,7 @@ static void esb2rom_cleanup(struct esb2rom_window *window) | |||
145 | } | 145 | } |
146 | 146 | ||
147 | static int esb2rom_init_one(struct pci_dev *pdev, | 147 | static int esb2rom_init_one(struct pci_dev *pdev, |
148 | const struct pci_device_id *ent) | 148 | const struct pci_device_id *ent) |
149 | { | 149 | { |
150 | static char *rom_probe_types[] = { "cfi_probe", "jedec_probe", NULL }; | 150 | static char *rom_probe_types[] = { "cfi_probe", "jedec_probe", NULL }; |
151 | struct esb2rom_window *window = &esb2rom_window; | 151 | struct esb2rom_window *window = &esb2rom_window; |
diff --git a/drivers/mtd/maps/intel_vr_nor.c b/drivers/mtd/maps/intel_vr_nor.c index 3ee2ad1dcbe7..b14053b25026 100644 --- a/drivers/mtd/maps/intel_vr_nor.c +++ b/drivers/mtd/maps/intel_vr_nor.c | |||
@@ -189,8 +189,7 @@ static void vr_nor_pci_remove(struct pci_dev *dev) | |||
189 | pci_disable_device(dev); | 189 | pci_disable_device(dev); |
190 | } | 190 | } |
191 | 191 | ||
192 | static int | 192 | static int vr_nor_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) |
193 | vr_nor_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) | ||
194 | { | 193 | { |
195 | struct vr_nor_mtd *p = NULL; | 194 | struct vr_nor_mtd *p = NULL; |
196 | unsigned int exp_timing_cs0; | 195 | unsigned int exp_timing_cs0; |
diff --git a/drivers/mtd/maps/pci.c b/drivers/mtd/maps/pci.c index ed82914966f5..c3aebd5da5d6 100644 --- a/drivers/mtd/maps/pci.c +++ b/drivers/mtd/maps/pci.c | |||
@@ -253,8 +253,7 @@ static struct pci_device_id mtd_pci_ids[] = { | |||
253 | * Generic code follows. | 253 | * Generic code follows. |
254 | */ | 254 | */ |
255 | 255 | ||
256 | static int | 256 | static int mtd_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) |
257 | mtd_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) | ||
258 | { | 257 | { |
259 | struct mtd_pci_info *info = (struct mtd_pci_info *)id->driver_data; | 258 | struct mtd_pci_info *info = (struct mtd_pci_info *)id->driver_data; |
260 | struct map_pci_info *map = NULL; | 259 | struct map_pci_info *map = NULL; |
@@ -308,8 +307,7 @@ out: | |||
308 | return err; | 307 | return err; |
309 | } | 308 | } |
310 | 309 | ||
311 | static void | 310 | static void mtd_pci_remove(struct pci_dev *dev) |
312 | mtd_pci_remove(struct pci_dev *dev) | ||
313 | { | 311 | { |
314 | struct mtd_info *mtd = pci_get_drvdata(dev); | 312 | struct mtd_info *mtd = pci_get_drvdata(dev); |
315 | struct map_pci_info *map = mtd->priv; | 313 | struct map_pci_info *map = mtd->priv; |
diff --git a/drivers/mtd/maps/physmap_of.c b/drivers/mtd/maps/physmap_of.c index 37cdc201652f..67cc73c18ddd 100644 --- a/drivers/mtd/maps/physmap_of.c +++ b/drivers/mtd/maps/physmap_of.c | |||
@@ -78,7 +78,7 @@ static int of_flash_remove(struct platform_device *dev) | |||
78 | * compatible binding, which has an extra "probe-type" property | 78 | * compatible binding, which has an extra "probe-type" property |
79 | * describing the type of flash probe necessary. */ | 79 | * describing the type of flash probe necessary. */ |
80 | static struct mtd_info *obsolete_probe(struct platform_device *dev, | 80 | static struct mtd_info *obsolete_probe(struct platform_device *dev, |
81 | struct map_info *map) | 81 | struct map_info *map) |
82 | { | 82 | { |
83 | struct device_node *dp = dev->dev.of_node; | 83 | struct device_node *dp = dev->dev.of_node; |
84 | const char *of_probe; | 84 | const char *of_probe; |
diff --git a/drivers/mtd/maps/pismo.c b/drivers/mtd/maps/pismo.c index afea93b515d5..dc6df9abea0b 100644 --- a/drivers/mtd/maps/pismo.c +++ b/drivers/mtd/maps/pismo.c | |||
@@ -66,8 +66,8 @@ static unsigned int pismo_width_to_bytes(unsigned int width) | |||
66 | return 1 << width; | 66 | return 1 << width; |
67 | } | 67 | } |
68 | 68 | ||
69 | static int pismo_eeprom_read(struct i2c_client *client, void *buf, | 69 | static int pismo_eeprom_read(struct i2c_client *client, void *buf, u8 addr, |
70 | u8 addr, size_t size) | 70 | size_t size) |
71 | { | 71 | { |
72 | int ret; | 72 | int ret; |
73 | struct i2c_msg msg[] = { | 73 | struct i2c_msg msg[] = { |
@@ -89,7 +89,8 @@ static int pismo_eeprom_read(struct i2c_client *client, void *buf, | |||
89 | } | 89 | } |
90 | 90 | ||
91 | static int pismo_add_device(struct pismo_data *pismo, int i, | 91 | static int pismo_add_device(struct pismo_data *pismo, int i, |
92 | struct pismo_mem *region, const char *name, void *pdata, size_t psize) | 92 | struct pismo_mem *region, const char *name, |
93 | void *pdata, size_t psize) | ||
93 | { | 94 | { |
94 | struct platform_device *dev; | 95 | struct platform_device *dev; |
95 | struct resource res = { }; | 96 | struct resource res = { }; |
@@ -130,7 +131,7 @@ static int pismo_add_device(struct pismo_data *pismo, int i, | |||
130 | } | 131 | } |
131 | 132 | ||
132 | static int pismo_add_nor(struct pismo_data *pismo, int i, | 133 | static int pismo_add_nor(struct pismo_data *pismo, int i, |
133 | struct pismo_mem *region) | 134 | struct pismo_mem *region) |
134 | { | 135 | { |
135 | struct physmap_flash_data data = { | 136 | struct physmap_flash_data data = { |
136 | .width = region->width, | 137 | .width = region->width, |
@@ -144,7 +145,7 @@ static int pismo_add_nor(struct pismo_data *pismo, int i, | |||
144 | } | 145 | } |
145 | 146 | ||
146 | static int pismo_add_sram(struct pismo_data *pismo, int i, | 147 | static int pismo_add_sram(struct pismo_data *pismo, int i, |
147 | struct pismo_mem *region) | 148 | struct pismo_mem *region) |
148 | { | 149 | { |
149 | struct platdata_mtd_ram data = { | 150 | struct platdata_mtd_ram data = { |
150 | .bankwidth = region->width, | 151 | .bankwidth = region->width, |
@@ -155,7 +156,7 @@ static int pismo_add_sram(struct pismo_data *pismo, int i, | |||
155 | } | 156 | } |
156 | 157 | ||
157 | static void pismo_add_one(struct pismo_data *pismo, int i, | 158 | static void pismo_add_one(struct pismo_data *pismo, int i, |
158 | const struct pismo_cs_block *cs, phys_addr_t base) | 159 | const struct pismo_cs_block *cs, phys_addr_t base) |
159 | { | 160 | { |
160 | struct device *dev = &pismo->client->dev; | 161 | struct device *dev = &pismo->client->dev; |
161 | struct pismo_mem region; | 162 | struct pismo_mem region; |
@@ -211,7 +212,7 @@ static int pismo_remove(struct i2c_client *client) | |||
211 | } | 212 | } |
212 | 213 | ||
213 | static int pismo_probe(struct i2c_client *client, | 214 | static int pismo_probe(struct i2c_client *client, |
214 | const struct i2c_device_id *id) | 215 | const struct i2c_device_id *id) |
215 | { | 216 | { |
216 | struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); | 217 | struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); |
217 | struct pismo_pdata *pdata = client->dev.platform_data; | 218 | struct pismo_pdata *pdata = client->dev.platform_data; |
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 | }; |
70 | static int region_fail; | 70 | static int region_fail; |
71 | 71 | ||
72 | static int | 72 | static int scb2_fixup_mtd(struct mtd_info *mtd) |
73 | scb2_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 |
136 | static int | 135 | static int scb2_flash_probe(struct pci_dev *dev, |
137 | scb2_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 | ||
200 | static void | 199 | static void scb2_flash_remove(struct pci_dev *dev) |
201 | scb2_flash_remove(struct pci_dev *dev) | ||
202 | { | 200 | { |
203 | if (!scb2_mtd) | 201 | if (!scb2_mtd) |
204 | return; | 202 | return; |