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/nand | |
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/nand')
26 files changed, 46 insertions, 46 deletions
diff --git a/drivers/mtd/nand/ams-delta.c b/drivers/mtd/nand/ams-delta.c index 51dba43e287..703e3738713 100644 --- a/drivers/mtd/nand/ams-delta.c +++ b/drivers/mtd/nand/ams-delta.c | |||
@@ -173,7 +173,7 @@ static const struct gpio _mandatory_gpio[] = { | |||
173 | /* | 173 | /* |
174 | * Main initialization routine | 174 | * Main initialization routine |
175 | */ | 175 | */ |
176 | static int __devinit ams_delta_init(struct platform_device *pdev) | 176 | static int ams_delta_init(struct platform_device *pdev) |
177 | { | 177 | { |
178 | struct nand_chip *this; | 178 | struct nand_chip *this; |
179 | struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 179 | struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 91445578330..c9183866a16 100644 --- a/drivers/mtd/nand/atmel_nand.c +++ b/drivers/mtd/nand/atmel_nand.c | |||
@@ -330,13 +330,13 @@ static void atmel_write_buf(struct mtd_info *mtd, const u8 *buf, int len) | |||
330 | * 12-bits 20-bytes 21-bytes | 330 | * 12-bits 20-bytes 21-bytes |
331 | * 24-bits 39-bytes 42-bytes | 331 | * 24-bits 39-bytes 42-bytes |
332 | */ | 332 | */ |
333 | static int __devinit pmecc_get_ecc_bytes(int cap, int sector_size) | 333 | static int pmecc_get_ecc_bytes(int cap, int sector_size) |
334 | { | 334 | { |
335 | int m = 12 + sector_size / 512; | 335 | int m = 12 + sector_size / 512; |
336 | return (m * cap + 7) / 8; | 336 | return (m * cap + 7) / 8; |
337 | } | 337 | } |
338 | 338 | ||
339 | static void __devinit pmecc_config_ecc_layout(struct nand_ecclayout *layout, | 339 | static void pmecc_config_ecc_layout(struct nand_ecclayout *layout, |
340 | int oobsize, int ecc_len) | 340 | int oobsize, int ecc_len) |
341 | { | 341 | { |
342 | int i; | 342 | int i; |
@@ -352,7 +352,7 @@ static void __devinit pmecc_config_ecc_layout(struct nand_ecclayout *layout, | |||
352 | oobsize - ecc_len - layout->oobfree[0].offset; | 352 | oobsize - ecc_len - layout->oobfree[0].offset; |
353 | } | 353 | } |
354 | 354 | ||
355 | static void __devinit __iomem *pmecc_get_alpha_to(struct atmel_nand_host *host) | 355 | static void __iomem *pmecc_get_alpha_to(struct atmel_nand_host *host) |
356 | { | 356 | { |
357 | int table_size; | 357 | int table_size; |
358 | 358 | ||
@@ -374,7 +374,7 @@ static void pmecc_data_free(struct atmel_nand_host *host) | |||
374 | kfree(host->pmecc_delta); | 374 | kfree(host->pmecc_delta); |
375 | } | 375 | } |
376 | 376 | ||
377 | static int __devinit pmecc_data_alloc(struct atmel_nand_host *host) | 377 | static int pmecc_data_alloc(struct atmel_nand_host *host) |
378 | { | 378 | { |
379 | const int cap = host->pmecc_corr_cap; | 379 | const int cap = host->pmecc_corr_cap; |
380 | 380 | ||
@@ -1205,7 +1205,7 @@ static void atmel_nand_hwctl(struct mtd_info *mtd, int mode) | |||
1205 | } | 1205 | } |
1206 | 1206 | ||
1207 | #if defined(CONFIG_OF) | 1207 | #if defined(CONFIG_OF) |
1208 | static int __devinit atmel_of_init_port(struct atmel_nand_host *host, | 1208 | static int atmel_of_init_port(struct atmel_nand_host *host, |
1209 | struct device_node *np) | 1209 | struct device_node *np) |
1210 | { | 1210 | { |
1211 | u32 val, table_offset; | 1211 | u32 val, table_offset; |
@@ -1292,7 +1292,7 @@ static int __devinit atmel_of_init_port(struct atmel_nand_host *host, | |||
1292 | return 0; | 1292 | return 0; |
1293 | } | 1293 | } |
1294 | #else | 1294 | #else |
1295 | static int __devinit atmel_of_init_port(struct atmel_nand_host *host, | 1295 | static int atmel_of_init_port(struct atmel_nand_host *host, |
1296 | struct device_node *np) | 1296 | struct device_node *np) |
1297 | { | 1297 | { |
1298 | return -EINVAL; | 1298 | return -EINVAL; |
diff --git a/drivers/mtd/nand/au1550nd.c b/drivers/mtd/nand/au1550nd.c index d84af46ccc8..73d6423680c 100644 --- a/drivers/mtd/nand/au1550nd.c +++ b/drivers/mtd/nand/au1550nd.c | |||
@@ -382,7 +382,7 @@ static void au1550_command(struct mtd_info *mtd, unsigned command, int column, i | |||
382 | while(!this->dev_ready(mtd)); | 382 | while(!this->dev_ready(mtd)); |
383 | } | 383 | } |
384 | 384 | ||
385 | static int __devinit find_nand_cs(unsigned long nand_base) | 385 | static int find_nand_cs(unsigned long nand_base) |
386 | { | 386 | { |
387 | void __iomem *base = | 387 | void __iomem *base = |
388 | (void __iomem *)KSEG1ADDR(AU1000_STATIC_MEM_PHYS_ADDR); | 388 | (void __iomem *)KSEG1ADDR(AU1000_STATIC_MEM_PHYS_ADDR); |
@@ -403,7 +403,7 @@ static int __devinit find_nand_cs(unsigned long nand_base) | |||
403 | return -ENODEV; | 403 | return -ENODEV; |
404 | } | 404 | } |
405 | 405 | ||
406 | static int __devinit au1550nd_probe(struct platform_device *pdev) | 406 | static int au1550nd_probe(struct platform_device *pdev) |
407 | { | 407 | { |
408 | struct au1550nd_platdata *pd; | 408 | struct au1550nd_platdata *pd; |
409 | struct au1550nd_ctx *ctx; | 409 | struct au1550nd_ctx *ctx; |
diff --git a/drivers/mtd/nand/bf5xx_nand.c b/drivers/mtd/nand/bf5xx_nand.c index 0afd4ac3424..56de9b67638 100644 --- a/drivers/mtd/nand/bf5xx_nand.c +++ b/drivers/mtd/nand/bf5xx_nand.c | |||
@@ -658,7 +658,7 @@ static int bf5xx_nand_hw_init(struct bf5xx_nand_info *info) | |||
658 | /* | 658 | /* |
659 | * Device management interface | 659 | * Device management interface |
660 | */ | 660 | */ |
661 | static int __devinit bf5xx_nand_add_partition(struct bf5xx_nand_info *info) | 661 | static int bf5xx_nand_add_partition(struct bf5xx_nand_info *info) |
662 | { | 662 | { |
663 | struct mtd_info *mtd = &info->mtd; | 663 | struct mtd_info *mtd = &info->mtd; |
664 | struct mtd_partition *parts = info->platform->partitions; | 664 | struct mtd_partition *parts = info->platform->partitions; |
@@ -725,7 +725,7 @@ static int bf5xx_nand_scan(struct mtd_info *mtd) | |||
725 | * it can allocate all necessary resources then calls the | 725 | * it can allocate all necessary resources then calls the |
726 | * nand layer to look for devices | 726 | * nand layer to look for devices |
727 | */ | 727 | */ |
728 | static int __devinit bf5xx_nand_probe(struct platform_device *pdev) | 728 | static int bf5xx_nand_probe(struct platform_device *pdev) |
729 | { | 729 | { |
730 | struct bf5xx_nand_platform *plat = to_nand_plat(pdev); | 730 | struct bf5xx_nand_platform *plat = to_nand_plat(pdev); |
731 | struct bf5xx_nand_info *info = NULL; | 731 | struct bf5xx_nand_info *info = NULL; |
diff --git a/drivers/mtd/nand/cafe_nand.c b/drivers/mtd/nand/cafe_nand.c index 1b62f043bf7..480834a9838 100644 --- a/drivers/mtd/nand/cafe_nand.c +++ b/drivers/mtd/nand/cafe_nand.c | |||
@@ -585,7 +585,7 @@ static int cafe_nand_block_bad(struct mtd_info *mtd, loff_t ofs, int getchip) | |||
585 | } | 585 | } |
586 | 586 | ||
587 | /* F_2[X]/(X**6+X+1) */ | 587 | /* F_2[X]/(X**6+X+1) */ |
588 | static unsigned short __devinit gf64_mul(u8 a, u8 b) | 588 | static unsigned short gf64_mul(u8 a, u8 b) |
589 | { | 589 | { |
590 | u8 c; | 590 | u8 c; |
591 | unsigned int i; | 591 | unsigned int i; |
@@ -604,7 +604,7 @@ static unsigned short __devinit gf64_mul(u8 a, u8 b) | |||
604 | } | 604 | } |
605 | 605 | ||
606 | /* F_64[X]/(X**2+X+A**-1) with A the generator of F_64[X] */ | 606 | /* F_64[X]/(X**2+X+A**-1) with A the generator of F_64[X] */ |
607 | static u16 __devinit gf4096_mul(u16 a, u16 b) | 607 | static u16 gf4096_mul(u16 a, u16 b) |
608 | { | 608 | { |
609 | u8 ah, al, bh, bl, ch, cl; | 609 | u8 ah, al, bh, bl, ch, cl; |
610 | 610 | ||
@@ -619,14 +619,14 @@ static u16 __devinit gf4096_mul(u16 a, u16 b) | |||
619 | return (ch << 6) ^ cl; | 619 | return (ch << 6) ^ cl; |
620 | } | 620 | } |
621 | 621 | ||
622 | static int __devinit cafe_mul(int x) | 622 | static int cafe_mul(int x) |
623 | { | 623 | { |
624 | if (x == 0) | 624 | if (x == 0) |
625 | return 1; | 625 | return 1; |
626 | return gf4096_mul(x, 0xe01); | 626 | return gf4096_mul(x, 0xe01); |
627 | } | 627 | } |
628 | 628 | ||
629 | static int __devinit cafe_nand_probe(struct pci_dev *pdev, | 629 | static int cafe_nand_probe(struct pci_dev *pdev, |
630 | const struct pci_device_id *ent) | 630 | const struct pci_device_id *ent) |
631 | { | 631 | { |
632 | struct mtd_info *mtd; | 632 | struct mtd_info *mtd; |
diff --git a/drivers/mtd/nand/denali_dt.c b/drivers/mtd/nand/denali_dt.c index 445de7c8bb5..f9b593c81db 100644 --- a/drivers/mtd/nand/denali_dt.c +++ b/drivers/mtd/nand/denali_dt.c | |||
@@ -57,7 +57,7 @@ MODULE_DEVICE_TABLE(of, denali_nand_dt_ids); | |||
57 | 57 | ||
58 | static u64 denali_dma_mask; | 58 | static u64 denali_dma_mask; |
59 | 59 | ||
60 | static int __devinit denali_dt_probe(struct platform_device *ofdev) | 60 | static int denali_dt_probe(struct platform_device *ofdev) |
61 | { | 61 | { |
62 | struct resource *denali_reg, *nand_data; | 62 | struct resource *denali_reg, *nand_data; |
63 | struct denali_dt *dt; | 63 | struct denali_dt *dt; |
diff --git a/drivers/mtd/nand/denali_pci.c b/drivers/mtd/nand/denali_pci.c index ea074e6c762..f1f8f896fcc 100644 --- a/drivers/mtd/nand/denali_pci.c +++ b/drivers/mtd/nand/denali_pci.c | |||
@@ -130,7 +130,7 @@ static struct pci_driver denali_pci_driver = { | |||
130 | .remove = denali_pci_remove, | 130 | .remove = denali_pci_remove, |
131 | }; | 131 | }; |
132 | 132 | ||
133 | static int __devinit denali_init_pci(void) | 133 | static int denali_init_pci(void) |
134 | { | 134 | { |
135 | pr_info("Spectra MTD driver built on %s @ %s\n", __DATE__, __TIME__); | 135 | pr_info("Spectra MTD driver built on %s @ %s\n", __DATE__, __TIME__); |
136 | return pci_register_driver(&denali_pci_driver); | 136 | return pci_register_driver(&denali_pci_driver); |
diff --git a/drivers/mtd/nand/fsl_elbc_nand.c b/drivers/mtd/nand/fsl_elbc_nand.c index 4c4d3e5bca1..20657209a47 100644 --- a/drivers/mtd/nand/fsl_elbc_nand.c +++ b/drivers/mtd/nand/fsl_elbc_nand.c | |||
@@ -799,7 +799,7 @@ static int fsl_elbc_chip_remove(struct fsl_elbc_mtd *priv) | |||
799 | 799 | ||
800 | static DEFINE_MUTEX(fsl_elbc_nand_mutex); | 800 | static DEFINE_MUTEX(fsl_elbc_nand_mutex); |
801 | 801 | ||
802 | static int __devinit fsl_elbc_nand_probe(struct platform_device *pdev) | 802 | static int fsl_elbc_nand_probe(struct platform_device *pdev) |
803 | { | 803 | { |
804 | struct fsl_lbc_regs __iomem *lbc; | 804 | struct fsl_lbc_regs __iomem *lbc; |
805 | struct fsl_elbc_mtd *priv; | 805 | struct fsl_elbc_mtd *priv; |
diff --git a/drivers/mtd/nand/fsl_ifc_nand.c b/drivers/mtd/nand/fsl_ifc_nand.c index 53152310804..ad6222627fe 100644 --- a/drivers/mtd/nand/fsl_ifc_nand.c +++ b/drivers/mtd/nand/fsl_ifc_nand.c | |||
@@ -922,7 +922,7 @@ static int match_bank(struct fsl_ifc_regs __iomem *ifc, int bank, | |||
922 | 922 | ||
923 | static DEFINE_MUTEX(fsl_ifc_nand_mutex); | 923 | static DEFINE_MUTEX(fsl_ifc_nand_mutex); |
924 | 924 | ||
925 | static int __devinit fsl_ifc_nand_probe(struct platform_device *dev) | 925 | static int fsl_ifc_nand_probe(struct platform_device *dev) |
926 | { | 926 | { |
927 | struct fsl_ifc_regs __iomem *ifc; | 927 | struct fsl_ifc_regs __iomem *ifc; |
928 | struct fsl_ifc_mtd *priv; | 928 | struct fsl_ifc_mtd *priv; |
diff --git a/drivers/mtd/nand/fsl_upm.c b/drivers/mtd/nand/fsl_upm.c index b40661d7160..a5643252584 100644 --- a/drivers/mtd/nand/fsl_upm.c +++ b/drivers/mtd/nand/fsl_upm.c | |||
@@ -152,7 +152,7 @@ static void fun_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) | |||
152 | fun_wait_rnb(fun); | 152 | fun_wait_rnb(fun); |
153 | } | 153 | } |
154 | 154 | ||
155 | static int __devinit fun_chip_init(struct fsl_upm_nand *fun, | 155 | static int fun_chip_init(struct fsl_upm_nand *fun, |
156 | const struct device_node *upm_np, | 156 | const struct device_node *upm_np, |
157 | const struct resource *io_res) | 157 | const struct resource *io_res) |
158 | { | 158 | { |
@@ -201,7 +201,7 @@ err: | |||
201 | return ret; | 201 | return ret; |
202 | } | 202 | } |
203 | 203 | ||
204 | static int __devinit fun_probe(struct platform_device *ofdev) | 204 | static int fun_probe(struct platform_device *ofdev) |
205 | { | 205 | { |
206 | struct fsl_upm_nand *fun; | 206 | struct fsl_upm_nand *fun; |
207 | struct resource io_res; | 207 | struct resource io_res; |
diff --git a/drivers/mtd/nand/fsmc_nand.c b/drivers/mtd/nand/fsmc_nand.c index 6b592235f84..1d7446434b0 100644 --- a/drivers/mtd/nand/fsmc_nand.c +++ b/drivers/mtd/nand/fsmc_nand.c | |||
@@ -864,7 +864,7 @@ static bool filter(struct dma_chan *chan, void *slave) | |||
864 | } | 864 | } |
865 | 865 | ||
866 | #ifdef CONFIG_OF | 866 | #ifdef CONFIG_OF |
867 | static int __devinit fsmc_nand_probe_config_dt(struct platform_device *pdev, | 867 | static int fsmc_nand_probe_config_dt(struct platform_device *pdev, |
868 | struct device_node *np) | 868 | struct device_node *np) |
869 | { | 869 | { |
870 | struct fsmc_nand_platform_data *pdata = dev_get_platdata(&pdev->dev); | 870 | struct fsmc_nand_platform_data *pdata = dev_get_platdata(&pdev->dev); |
@@ -886,7 +886,7 @@ static int __devinit fsmc_nand_probe_config_dt(struct platform_device *pdev, | |||
886 | return 0; | 886 | return 0; |
887 | } | 887 | } |
888 | #else | 888 | #else |
889 | static int __devinit fsmc_nand_probe_config_dt(struct platform_device *pdev, | 889 | static int fsmc_nand_probe_config_dt(struct platform_device *pdev, |
890 | struct device_node *np) | 890 | struct device_node *np) |
891 | { | 891 | { |
892 | return -ENOSYS; | 892 | return -ENOSYS; |
diff --git a/drivers/mtd/nand/gpio.c b/drivers/mtd/nand/gpio.c index 0b3c815ef80..45f1a240bcb 100644 --- a/drivers/mtd/nand/gpio.c +++ b/drivers/mtd/nand/gpio.c | |||
@@ -282,7 +282,7 @@ static void __iomem *request_and_remap(struct resource *res, size_t size, | |||
282 | return ptr; | 282 | return ptr; |
283 | } | 283 | } |
284 | 284 | ||
285 | static int __devinit gpio_nand_probe(struct platform_device *dev) | 285 | static int gpio_nand_probe(struct platform_device *dev) |
286 | { | 286 | { |
287 | struct gpiomtd *gpiomtd; | 287 | struct gpiomtd *gpiomtd; |
288 | struct nand_chip *this; | 288 | struct nand_chip *this; |
diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c index 7ce6d01a3c9..2a251c95a70 100644 --- a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c +++ b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c | |||
@@ -319,7 +319,7 @@ int start_dma_with_bch_irq(struct gpmi_nand_data *this, | |||
319 | return 0; | 319 | return 0; |
320 | } | 320 | } |
321 | 321 | ||
322 | static int __devinit | 322 | static int |
323 | acquire_register_block(struct gpmi_nand_data *this, const char *res_name) | 323 | acquire_register_block(struct gpmi_nand_data *this, const char *res_name) |
324 | { | 324 | { |
325 | struct platform_device *pdev = this->pdev; | 325 | struct platform_device *pdev = this->pdev; |
@@ -360,7 +360,7 @@ static void release_register_block(struct gpmi_nand_data *this) | |||
360 | res->bch_regs = NULL; | 360 | res->bch_regs = NULL; |
361 | } | 361 | } |
362 | 362 | ||
363 | static int __devinit | 363 | static int |
364 | acquire_bch_irq(struct gpmi_nand_data *this, irq_handler_t irq_h) | 364 | acquire_bch_irq(struct gpmi_nand_data *this, irq_handler_t irq_h) |
365 | { | 365 | { |
366 | struct platform_device *pdev = this->pdev; | 366 | struct platform_device *pdev = this->pdev; |
@@ -427,7 +427,7 @@ static void release_dma_channels(struct gpmi_nand_data *this) | |||
427 | } | 427 | } |
428 | } | 428 | } |
429 | 429 | ||
430 | static int __devinit acquire_dma_channels(struct gpmi_nand_data *this) | 430 | static int acquire_dma_channels(struct gpmi_nand_data *this) |
431 | { | 431 | { |
432 | struct platform_device *pdev = this->pdev; | 432 | struct platform_device *pdev = this->pdev; |
433 | struct resource *r_dma; | 433 | struct resource *r_dma; |
@@ -492,7 +492,7 @@ static char *extra_clks_for_mx6q[GPMI_CLK_MAX] = { | |||
492 | "gpmi_apb", "gpmi_bch", "gpmi_bch_apb", "per1_bch", | 492 | "gpmi_apb", "gpmi_bch", "gpmi_bch_apb", "per1_bch", |
493 | }; | 493 | }; |
494 | 494 | ||
495 | static int __devinit gpmi_get_clks(struct gpmi_nand_data *this) | 495 | static int gpmi_get_clks(struct gpmi_nand_data *this) |
496 | { | 496 | { |
497 | struct resources *r = &this->resources; | 497 | struct resources *r = &this->resources; |
498 | char **extra_clks = NULL; | 498 | char **extra_clks = NULL; |
@@ -538,7 +538,7 @@ err_clock: | |||
538 | return -ENOMEM; | 538 | return -ENOMEM; |
539 | } | 539 | } |
540 | 540 | ||
541 | static int __devinit acquire_resources(struct gpmi_nand_data *this) | 541 | static int acquire_resources(struct gpmi_nand_data *this) |
542 | { | 542 | { |
543 | struct pinctrl *pinctrl; | 543 | struct pinctrl *pinctrl; |
544 | int ret; | 544 | int ret; |
@@ -588,7 +588,7 @@ static void release_resources(struct gpmi_nand_data *this) | |||
588 | release_dma_channels(this); | 588 | release_dma_channels(this); |
589 | } | 589 | } |
590 | 590 | ||
591 | static int __devinit init_hardware(struct gpmi_nand_data *this) | 591 | static int init_hardware(struct gpmi_nand_data *this) |
592 | { | 592 | { |
593 | int ret; | 593 | int ret; |
594 | 594 | ||
@@ -1542,7 +1542,7 @@ static void gpmi_nfc_exit(struct gpmi_nand_data *this) | |||
1542 | gpmi_free_dma_buffer(this); | 1542 | gpmi_free_dma_buffer(this); |
1543 | } | 1543 | } |
1544 | 1544 | ||
1545 | static int __devinit gpmi_nfc_init(struct gpmi_nand_data *this) | 1545 | static int gpmi_nfc_init(struct gpmi_nand_data *this) |
1546 | { | 1546 | { |
1547 | struct mtd_info *mtd = &this->mtd; | 1547 | struct mtd_info *mtd = &this->mtd; |
1548 | struct nand_chip *chip = &this->nand; | 1548 | struct nand_chip *chip = &this->nand; |
@@ -1625,7 +1625,7 @@ static const struct of_device_id gpmi_nand_id_table[] = { | |||
1625 | }; | 1625 | }; |
1626 | MODULE_DEVICE_TABLE(of, gpmi_nand_id_table); | 1626 | MODULE_DEVICE_TABLE(of, gpmi_nand_id_table); |
1627 | 1627 | ||
1628 | static int __devinit gpmi_nand_probe(struct platform_device *pdev) | 1628 | static int gpmi_nand_probe(struct platform_device *pdev) |
1629 | { | 1629 | { |
1630 | struct gpmi_nand_data *this; | 1630 | struct gpmi_nand_data *this; |
1631 | const struct of_device_id *of_id; | 1631 | const struct of_device_id *of_id; |
diff --git a/drivers/mtd/nand/jz4740_nand.c b/drivers/mtd/nand/jz4740_nand.c index 2552fe28d05..5396b6ceb08 100644 --- a/drivers/mtd/nand/jz4740_nand.c +++ b/drivers/mtd/nand/jz4740_nand.c | |||
@@ -322,7 +322,7 @@ static inline void jz_nand_iounmap_resource(struct resource *res, void __iomem * | |||
322 | release_mem_region(res->start, resource_size(res)); | 322 | release_mem_region(res->start, resource_size(res)); |
323 | } | 323 | } |
324 | 324 | ||
325 | static int __devinit jz_nand_detect_bank(struct platform_device *pdev, struct jz_nand *nand, unsigned char bank, size_t chipnr, uint8_t *nand_maf_id, uint8_t *nand_dev_id) { | 325 | static int jz_nand_detect_bank(struct platform_device *pdev, struct jz_nand *nand, unsigned char bank, size_t chipnr, uint8_t *nand_maf_id, uint8_t *nand_dev_id) { |
326 | int ret; | 326 | int ret; |
327 | int gpio; | 327 | int gpio; |
328 | char gpio_name[9]; | 328 | char gpio_name[9]; |
@@ -400,7 +400,7 @@ notfound_gpio: | |||
400 | return ret; | 400 | return ret; |
401 | } | 401 | } |
402 | 402 | ||
403 | static int __devinit jz_nand_probe(struct platform_device *pdev) | 403 | static int jz_nand_probe(struct platform_device *pdev) |
404 | { | 404 | { |
405 | int ret; | 405 | int ret; |
406 | struct jz_nand *nand; | 406 | struct jz_nand *nand; |
diff --git a/drivers/mtd/nand/lpc32xx_mlc.c b/drivers/mtd/nand/lpc32xx_mlc.c index 311564259d2..bb83daf9c73 100644 --- a/drivers/mtd/nand/lpc32xx_mlc.c +++ b/drivers/mtd/nand/lpc32xx_mlc.c | |||
@@ -655,7 +655,7 @@ static struct lpc32xx_nand_cfg_mlc *lpc32xx_parse_dt(struct device *dev) | |||
655 | /* | 655 | /* |
656 | * Probe for NAND controller | 656 | * Probe for NAND controller |
657 | */ | 657 | */ |
658 | static int __devinit lpc32xx_nand_probe(struct platform_device *pdev) | 658 | static int lpc32xx_nand_probe(struct platform_device *pdev) |
659 | { | 659 | { |
660 | struct lpc32xx_nand_host *host; | 660 | struct lpc32xx_nand_host *host; |
661 | struct mtd_info *mtd; | 661 | struct mtd_info *mtd; |
diff --git a/drivers/mtd/nand/lpc32xx_slc.c b/drivers/mtd/nand/lpc32xx_slc.c index 9e291b71a8c..17267f2819d 100644 --- a/drivers/mtd/nand/lpc32xx_slc.c +++ b/drivers/mtd/nand/lpc32xx_slc.c | |||
@@ -755,7 +755,7 @@ static struct lpc32xx_nand_cfg_slc *lpc32xx_parse_dt(struct device *dev) | |||
755 | /* | 755 | /* |
756 | * Probe for NAND controller | 756 | * Probe for NAND controller |
757 | */ | 757 | */ |
758 | static int __devinit lpc32xx_nand_probe(struct platform_device *pdev) | 758 | static int lpc32xx_nand_probe(struct platform_device *pdev) |
759 | { | 759 | { |
760 | struct lpc32xx_nand_host *host; | 760 | struct lpc32xx_nand_host *host; |
761 | struct mtd_info *mtd; | 761 | struct mtd_info *mtd; |
diff --git a/drivers/mtd/nand/mpc5121_nfc.c b/drivers/mtd/nand/mpc5121_nfc.c index 17fe0c942fb..f779e6a3d4b 100644 --- a/drivers/mtd/nand/mpc5121_nfc.c +++ b/drivers/mtd/nand/mpc5121_nfc.c | |||
@@ -626,7 +626,7 @@ static void mpc5121_nfc_free(struct device *dev, struct mtd_info *mtd) | |||
626 | iounmap(prv->csreg); | 626 | iounmap(prv->csreg); |
627 | } | 627 | } |
628 | 628 | ||
629 | static int __devinit mpc5121_nfc_probe(struct platform_device *op) | 629 | static int mpc5121_nfc_probe(struct platform_device *op) |
630 | { | 630 | { |
631 | struct device_node *rootnode, *dn = op->dev.of_node; | 631 | struct device_node *rootnode, *dn = op->dev.of_node; |
632 | struct device *dev = &op->dev; | 632 | struct device *dev = &op->dev; |
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index a4caf640a30..77a03cf64dd 100644 --- a/drivers/mtd/nand/mxc_nand.c +++ b/drivers/mtd/nand/mxc_nand.c | |||
@@ -1363,7 +1363,7 @@ static int __init mxcnd_probe_pdata(struct mxc_nand_host *host) | |||
1363 | return 0; | 1363 | return 0; |
1364 | } | 1364 | } |
1365 | 1365 | ||
1366 | static int __devinit mxcnd_probe(struct platform_device *pdev) | 1366 | static int mxcnd_probe(struct platform_device *pdev) |
1367 | { | 1367 | { |
1368 | struct nand_chip *this; | 1368 | struct nand_chip *this; |
1369 | struct mtd_info *mtd; | 1369 | struct mtd_info *mtd; |
diff --git a/drivers/mtd/nand/ndfc.c b/drivers/mtd/nand/ndfc.c index 32e6bef480d..6fa4588d477 100644 --- a/drivers/mtd/nand/ndfc.c +++ b/drivers/mtd/nand/ndfc.c | |||
@@ -197,7 +197,7 @@ err: | |||
197 | return ret; | 197 | return ret; |
198 | } | 198 | } |
199 | 199 | ||
200 | static int __devinit ndfc_probe(struct platform_device *ofdev) | 200 | static int ndfc_probe(struct platform_device *ofdev) |
201 | { | 201 | { |
202 | struct ndfc_controller *ndfc; | 202 | struct ndfc_controller *ndfc; |
203 | const __be32 *reg; | 203 | const __be32 *reg; |
diff --git a/drivers/mtd/nand/nuc900_nand.c b/drivers/mtd/nand/nuc900_nand.c index eed134c5532..00766dfe4d3 100644 --- a/drivers/mtd/nand/nuc900_nand.c +++ b/drivers/mtd/nand/nuc900_nand.c | |||
@@ -246,7 +246,7 @@ static void nuc900_nand_enable(struct nuc900_nand *nand) | |||
246 | spin_unlock(&nand->lock); | 246 | spin_unlock(&nand->lock); |
247 | } | 247 | } |
248 | 248 | ||
249 | static int __devinit nuc900_nand_probe(struct platform_device *pdev) | 249 | static int nuc900_nand_probe(struct platform_device *pdev) |
250 | { | 250 | { |
251 | struct nuc900_nand *nuc900_nand; | 251 | struct nuc900_nand *nuc900_nand; |
252 | struct nand_chip *chip; | 252 | struct nand_chip *chip; |
diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c index 5b313862064..b00ccb2a68c 100644 --- a/drivers/mtd/nand/omap2.c +++ b/drivers/mtd/nand/omap2.c | |||
@@ -1239,7 +1239,7 @@ static void omap3_free_bch(struct mtd_info *mtd) | |||
1239 | } | 1239 | } |
1240 | #endif /* CONFIG_MTD_NAND_OMAP_BCH */ | 1240 | #endif /* CONFIG_MTD_NAND_OMAP_BCH */ |
1241 | 1241 | ||
1242 | static int __devinit omap_nand_probe(struct platform_device *pdev) | 1242 | static int omap_nand_probe(struct platform_device *pdev) |
1243 | { | 1243 | { |
1244 | struct omap_nand_info *info; | 1244 | struct omap_nand_info *info; |
1245 | struct omap_nand_platform_data *pdata; | 1245 | struct omap_nand_platform_data *pdata; |
diff --git a/drivers/mtd/nand/pasemi_nand.c b/drivers/mtd/nand/pasemi_nand.c index 1440e51cedc..2e477cb20b7 100644 --- a/drivers/mtd/nand/pasemi_nand.c +++ b/drivers/mtd/nand/pasemi_nand.c | |||
@@ -89,7 +89,7 @@ int pasemi_device_ready(struct mtd_info *mtd) | |||
89 | return !!(inl(lpcctl) & LBICTRL_LPCCTL_NR); | 89 | return !!(inl(lpcctl) & LBICTRL_LPCCTL_NR); |
90 | } | 90 | } |
91 | 91 | ||
92 | static int __devinit pasemi_nand_probe(struct platform_device *ofdev) | 92 | static int pasemi_nand_probe(struct platform_device *ofdev) |
93 | { | 93 | { |
94 | struct pci_dev *pdev; | 94 | struct pci_dev *pdev; |
95 | struct device_node *np = ofdev->dev.of_node; | 95 | struct device_node *np = ofdev->dev.of_node; |
diff --git a/drivers/mtd/nand/plat_nand.c b/drivers/mtd/nand/plat_nand.c index 95a1dba150d..32e2996c9e7 100644 --- a/drivers/mtd/nand/plat_nand.c +++ b/drivers/mtd/nand/plat_nand.c | |||
@@ -28,7 +28,7 @@ static const char *part_probe_types[] = { "cmdlinepart", NULL }; | |||
28 | /* | 28 | /* |
29 | * Probe for the NAND device. | 29 | * Probe for the NAND device. |
30 | */ | 30 | */ |
31 | static int __devinit plat_nand_probe(struct platform_device *pdev) | 31 | static int plat_nand_probe(struct platform_device *pdev) |
32 | { | 32 | { |
33 | struct platform_nand_data *pdata = pdev->dev.platform_data; | 33 | struct platform_nand_data *pdata = pdev->dev.platform_data; |
34 | struct mtd_part_parser_data ppdata; | 34 | struct mtd_part_parser_data ppdata; |
diff --git a/drivers/mtd/nand/sh_flctl.c b/drivers/mtd/nand/sh_flctl.c index d51e3c15d37..e45d6bd2901 100644 --- a/drivers/mtd/nand/sh_flctl.c +++ b/drivers/mtd/nand/sh_flctl.c | |||
@@ -1086,7 +1086,7 @@ static struct sh_flctl_platform_data *flctl_parse_dt(struct device *dev) | |||
1086 | } | 1086 | } |
1087 | #endif /* CONFIG_OF */ | 1087 | #endif /* CONFIG_OF */ |
1088 | 1088 | ||
1089 | static int __devinit flctl_probe(struct platform_device *pdev) | 1089 | static int flctl_probe(struct platform_device *pdev) |
1090 | { | 1090 | { |
1091 | struct resource *res; | 1091 | struct resource *res; |
1092 | struct sh_flctl *flctl; | 1092 | struct sh_flctl *flctl; |
diff --git a/drivers/mtd/nand/sharpsl.c b/drivers/mtd/nand/sharpsl.c index 541fd511762..870f0ff76c5 100644 --- a/drivers/mtd/nand/sharpsl.c +++ b/drivers/mtd/nand/sharpsl.c | |||
@@ -106,7 +106,7 @@ static int sharpsl_nand_calculate_ecc(struct mtd_info *mtd, const u_char * dat, | |||
106 | /* | 106 | /* |
107 | * Main initialization routine | 107 | * Main initialization routine |
108 | */ | 108 | */ |
109 | static int __devinit sharpsl_nand_probe(struct platform_device *pdev) | 109 | static int sharpsl_nand_probe(struct platform_device *pdev) |
110 | { | 110 | { |
111 | struct nand_chip *this; | 111 | struct nand_chip *this; |
112 | struct resource *r; | 112 | struct resource *r; |
diff --git a/drivers/mtd/nand/socrates_nand.c b/drivers/mtd/nand/socrates_nand.c index 78b1a040b88..c9791fd1ee5 100644 --- a/drivers/mtd/nand/socrates_nand.c +++ b/drivers/mtd/nand/socrates_nand.c | |||
@@ -140,7 +140,7 @@ static int socrates_nand_device_ready(struct mtd_info *mtd) | |||
140 | /* | 140 | /* |
141 | * Probe for the NAND device. | 141 | * Probe for the NAND device. |
142 | */ | 142 | */ |
143 | static int __devinit socrates_nand_probe(struct platform_device *ofdev) | 143 | static int socrates_nand_probe(struct platform_device *ofdev) |
144 | { | 144 | { |
145 | struct socrates_nand_host *host; | 145 | struct socrates_nand_host *host; |
146 | struct mtd_info *mtd; | 146 | struct mtd_info *mtd; |