diff options
Diffstat (limited to 'drivers/mtd/maps/pismo.c')
| -rw-r--r-- | drivers/mtd/maps/pismo.c | 31 | 
1 files changed, 16 insertions, 15 deletions
diff --git a/drivers/mtd/maps/pismo.c b/drivers/mtd/maps/pismo.c index 65bd1cd4d62..dc6df9abea0 100644 --- a/drivers/mtd/maps/pismo.c +++ b/drivers/mtd/maps/pismo.c @@ -58,7 +58,7 @@ static void pismo_set_vpp(struct platform_device *pdev, int on)  	pismo->vpp(pismo->vpp_data, on);  } -static unsigned int __devinit pismo_width_to_bytes(unsigned int width) +static unsigned int pismo_width_to_bytes(unsigned int width)  {  	width &= 15;  	if (width > 2) @@ -66,8 +66,8 @@ static unsigned int __devinit pismo_width_to_bytes(unsigned int width)  	return 1 << width;  } -static int __devinit pismo_eeprom_read(struct i2c_client *client, void *buf, -	u8 addr, size_t size) +static int pismo_eeprom_read(struct i2c_client *client, void *buf, u8 addr, +			     size_t size)  {  	int ret;  	struct i2c_msg msg[] = { @@ -88,8 +88,9 @@ static int __devinit pismo_eeprom_read(struct i2c_client *client, void *buf,  	return ret == ARRAY_SIZE(msg) ? size : -EIO;  } -static int __devinit pismo_add_device(struct pismo_data *pismo, int i, -	struct pismo_mem *region, const char *name, void *pdata, size_t psize) +static int pismo_add_device(struct pismo_data *pismo, int i, +			    struct pismo_mem *region, const char *name, +			    void *pdata, size_t psize)  {  	struct platform_device *dev;  	struct resource res = { }; @@ -129,8 +130,8 @@ static int __devinit pismo_add_device(struct pismo_data *pismo, int i,  	return ret;  } -static int __devinit pismo_add_nor(struct pismo_data *pismo, int i, -	struct pismo_mem *region) +static int pismo_add_nor(struct pismo_data *pismo, int i, +			 struct pismo_mem *region)  {  	struct physmap_flash_data data = {  		.width = region->width, @@ -143,8 +144,8 @@ static int __devinit pismo_add_nor(struct pismo_data *pismo, int i,  		&data, sizeof(data));  } -static int __devinit pismo_add_sram(struct pismo_data *pismo, int i, -	struct pismo_mem *region) +static int pismo_add_sram(struct pismo_data *pismo, int i, +			  struct pismo_mem *region)  {  	struct platdata_mtd_ram data = {  		.bankwidth = region->width, @@ -154,8 +155,8 @@ static int __devinit pismo_add_sram(struct pismo_data *pismo, int i,  		&data, sizeof(data));  } -static void __devinit pismo_add_one(struct pismo_data *pismo, int i, -	const struct pismo_cs_block *cs, phys_addr_t base) +static void pismo_add_one(struct pismo_data *pismo, int i, +			  const struct pismo_cs_block *cs, phys_addr_t base)  {  	struct device *dev = &pismo->client->dev;  	struct pismo_mem region; @@ -197,7 +198,7 @@ static void __devinit pismo_add_one(struct pismo_data *pismo, int i,  	}  } -static int __devexit pismo_remove(struct i2c_client *client) +static int pismo_remove(struct i2c_client *client)  {  	struct pismo_data *pismo = i2c_get_clientdata(client);  	int i; @@ -210,8 +211,8 @@ static int __devexit pismo_remove(struct i2c_client *client)  	return 0;  } -static int __devinit pismo_probe(struct i2c_client *client, -				 const struct i2c_device_id *id) +static int pismo_probe(struct i2c_client *client, +		       const struct i2c_device_id *id)  {  	struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent);  	struct pismo_pdata *pdata = client->dev.platform_data; @@ -267,7 +268,7 @@ static struct i2c_driver pismo_driver = {  		.owner	= THIS_MODULE,  	},  	.probe		= pismo_probe, -	.remove		= __devexit_p(pismo_remove), +	.remove		= pismo_remove,  	.id_table	= pismo_id,  };  |