diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2012-11-19 13:23:07 -0500 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-11-22 05:07:03 -0500 |
commit | 06f25510692385ed4dadd23f7d3d064d1ab11c2d (patch) | |
tree | 2affb62af83cf8082caf40ff4e68a5b1f8725e4e /drivers/mtd/devices | |
parent | 5153b88cac39b0a14662f0e15439b826bacfe213 (diff) |
mtd: remove use of __devinit
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd/devices')
-rw-r--r-- | drivers/mtd/devices/m25p80.c | 4 | ||||
-rw-r--r-- | drivers/mtd/devices/mtd_dataflash.c | 8 | ||||
-rw-r--r-- | drivers/mtd/devices/spear_smi.c | 6 | ||||
-rw-r--r-- | drivers/mtd/devices/sst25l.c | 4 |
4 files changed, 11 insertions, 11 deletions
diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index bd2d91254c62..ae43b0154003 100644 --- a/drivers/mtd/devices/m25p80.c +++ b/drivers/mtd/devices/m25p80.c | |||
@@ -755,7 +755,7 @@ static const struct spi_device_id m25p_ids[] = { | |||
755 | }; | 755 | }; |
756 | MODULE_DEVICE_TABLE(spi, m25p_ids); | 756 | MODULE_DEVICE_TABLE(spi, m25p_ids); |
757 | 757 | ||
758 | static const struct spi_device_id *__devinit jedec_probe(struct spi_device *spi) | 758 | static const struct spi_device_id *jedec_probe(struct spi_device *spi) |
759 | { | 759 | { |
760 | int tmp; | 760 | int tmp; |
761 | u8 code = OPCODE_RDID; | 761 | u8 code = OPCODE_RDID; |
@@ -800,7 +800,7 @@ static const struct spi_device_id *__devinit jedec_probe(struct spi_device *spi) | |||
800 | * matches what the READ command supports, at least until this driver | 800 | * matches what the READ command supports, at least until this driver |
801 | * understands FAST_READ (for clocks over 25 MHz). | 801 | * understands FAST_READ (for clocks over 25 MHz). |
802 | */ | 802 | */ |
803 | static int __devinit m25p_probe(struct spi_device *spi) | 803 | static int m25p_probe(struct spi_device *spi) |
804 | { | 804 | { |
805 | const struct spi_device_id *id = spi_get_device_id(spi); | 805 | const struct spi_device_id *id = spi_get_device_id(spi); |
806 | struct flash_platform_data *data; | 806 | struct flash_platform_data *data; |
diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c index 23ccc36840f6..080cb1c1887d 100644 --- a/drivers/mtd/devices/mtd_dataflash.c +++ b/drivers/mtd/devices/mtd_dataflash.c | |||
@@ -618,7 +618,7 @@ static char *otp_setup(struct mtd_info *device, char revision) | |||
618 | /* | 618 | /* |
619 | * Register DataFlash device with MTD subsystem. | 619 | * Register DataFlash device with MTD subsystem. |
620 | */ | 620 | */ |
621 | static int __devinit | 621 | static int |
622 | add_dataflash_otp(struct spi_device *spi, char *name, | 622 | add_dataflash_otp(struct spi_device *spi, char *name, |
623 | int nr_pages, int pagesize, int pageoffset, char revision) | 623 | int nr_pages, int pagesize, int pageoffset, char revision) |
624 | { | 624 | { |
@@ -679,7 +679,7 @@ add_dataflash_otp(struct spi_device *spi, char *name, | |||
679 | return err; | 679 | return err; |
680 | } | 680 | } |
681 | 681 | ||
682 | static inline int __devinit | 682 | static inline int |
683 | add_dataflash(struct spi_device *spi, char *name, | 683 | add_dataflash(struct spi_device *spi, char *name, |
684 | int nr_pages, int pagesize, int pageoffset) | 684 | int nr_pages, int pagesize, int pageoffset) |
685 | { | 685 | { |
@@ -740,7 +740,7 @@ static struct flash_info __devinitdata dataflash_data [] = { | |||
740 | { "at45db642d", 0x1f2800, 8192, 1024, 10, SUP_POW2PS | IS_POW2PS}, | 740 | { "at45db642d", 0x1f2800, 8192, 1024, 10, SUP_POW2PS | IS_POW2PS}, |
741 | }; | 741 | }; |
742 | 742 | ||
743 | static struct flash_info *__devinit jedec_probe(struct spi_device *spi) | 743 | static struct flash_info *jedec_probe(struct spi_device *spi) |
744 | { | 744 | { |
745 | int tmp; | 745 | int tmp; |
746 | uint8_t code = OP_READ_ID; | 746 | uint8_t code = OP_READ_ID; |
@@ -823,7 +823,7 @@ static struct flash_info *__devinit jedec_probe(struct spi_device *spi) | |||
823 | * AT45DB0642 64Mbit (8M) xx111xxx (0x3c) 8192 1056 11 | 823 | * AT45DB0642 64Mbit (8M) xx111xxx (0x3c) 8192 1056 11 |
824 | * AT45DB1282 128Mbit (16M) xx0100xx (0x10) 16384 1056 11 | 824 | * AT45DB1282 128Mbit (16M) xx0100xx (0x10) 16384 1056 11 |
825 | */ | 825 | */ |
826 | static int __devinit dataflash_probe(struct spi_device *spi) | 826 | static int dataflash_probe(struct spi_device *spi) |
827 | { | 827 | { |
828 | int status; | 828 | int status; |
829 | struct flash_info *info; | 829 | struct flash_info *info; |
diff --git a/drivers/mtd/devices/spear_smi.c b/drivers/mtd/devices/spear_smi.c index e27737c91212..a30cd27ab916 100644 --- a/drivers/mtd/devices/spear_smi.c +++ b/drivers/mtd/devices/spear_smi.c | |||
@@ -756,7 +756,7 @@ err_probe: | |||
756 | 756 | ||
757 | 757 | ||
758 | #ifdef CONFIG_OF | 758 | #ifdef CONFIG_OF |
759 | static int __devinit spear_smi_probe_config_dt(struct platform_device *pdev, | 759 | static int spear_smi_probe_config_dt(struct platform_device *pdev, |
760 | struct device_node *np) | 760 | struct device_node *np) |
761 | { | 761 | { |
762 | struct spear_smi_plat_data *pdata = dev_get_platdata(&pdev->dev); | 762 | struct spear_smi_plat_data *pdata = dev_get_platdata(&pdev->dev); |
@@ -799,7 +799,7 @@ static int __devinit spear_smi_probe_config_dt(struct platform_device *pdev, | |||
799 | return 0; | 799 | return 0; |
800 | } | 800 | } |
801 | #else | 801 | #else |
802 | static int __devinit spear_smi_probe_config_dt(struct platform_device *pdev, | 802 | static int spear_smi_probe_config_dt(struct platform_device *pdev, |
803 | struct device_node *np) | 803 | struct device_node *np) |
804 | { | 804 | { |
805 | return -ENOSYS; | 805 | return -ENOSYS; |
@@ -901,7 +901,7 @@ static int spear_smi_setup_banks(struct platform_device *pdev, | |||
901 | * and do proper init for any found one. | 901 | * and do proper init for any found one. |
902 | * Returns 0 on success, non zero otherwise | 902 | * Returns 0 on success, non zero otherwise |
903 | */ | 903 | */ |
904 | static int __devinit spear_smi_probe(struct platform_device *pdev) | 904 | static int spear_smi_probe(struct platform_device *pdev) |
905 | { | 905 | { |
906 | struct device_node *np = pdev->dev.of_node; | 906 | struct device_node *np = pdev->dev.of_node; |
907 | struct spear_smi_plat_data *pdata = NULL; | 907 | struct spear_smi_plat_data *pdata = NULL; |
diff --git a/drivers/mtd/devices/sst25l.c b/drivers/mtd/devices/sst25l.c index 9ebf86d8faa8..ab4154deee0f 100644 --- a/drivers/mtd/devices/sst25l.c +++ b/drivers/mtd/devices/sst25l.c | |||
@@ -313,7 +313,7 @@ out: | |||
313 | return ret; | 313 | return ret; |
314 | } | 314 | } |
315 | 315 | ||
316 | static struct flash_info *__devinit sst25l_match_device(struct spi_device *spi) | 316 | static struct flash_info *sst25l_match_device(struct spi_device *spi) |
317 | { | 317 | { |
318 | struct flash_info *flash_info = NULL; | 318 | struct flash_info *flash_info = NULL; |
319 | struct spi_message m; | 319 | struct spi_message m; |
@@ -353,7 +353,7 @@ static struct flash_info *__devinit sst25l_match_device(struct spi_device *spi) | |||
353 | return flash_info; | 353 | return flash_info; |
354 | } | 354 | } |
355 | 355 | ||
356 | static int __devinit sst25l_probe(struct spi_device *spi) | 356 | static int sst25l_probe(struct spi_device *spi) |
357 | { | 357 | { |
358 | struct flash_info *flash_info; | 358 | struct flash_info *flash_info; |
359 | struct sst25l_flash *flash; | 359 | struct sst25l_flash *flash; |