diff options
Diffstat (limited to 'drivers/mtd/nand/bcm47xxnflash/main.c')
-rw-r--r-- | drivers/mtd/nand/bcm47xxnflash/main.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/mtd/nand/bcm47xxnflash/main.c b/drivers/mtd/nand/bcm47xxnflash/main.c index 8363a9a5fa3f..7bae569fdc79 100644 --- a/drivers/mtd/nand/bcm47xxnflash/main.c +++ b/drivers/mtd/nand/bcm47xxnflash/main.c | |||
@@ -9,14 +9,14 @@ | |||
9 | * | 9 | * |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include "bcm47xxnflash.h" | ||
13 | |||
12 | #include <linux/module.h> | 14 | #include <linux/module.h> |
13 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
14 | #include <linux/slab.h> | 16 | #include <linux/slab.h> |
15 | #include <linux/platform_device.h> | 17 | #include <linux/platform_device.h> |
16 | #include <linux/bcma/bcma.h> | 18 | #include <linux/bcma/bcma.h> |
17 | 19 | ||
18 | #include "bcm47xxnflash.h" | ||
19 | |||
20 | MODULE_DESCRIPTION("NAND flash driver for BCMA bus"); | 20 | MODULE_DESCRIPTION("NAND flash driver for BCMA bus"); |
21 | MODULE_LICENSE("GPL"); | 21 | MODULE_LICENSE("GPL"); |
22 | MODULE_AUTHOR("Rafał Miłecki"); | 22 | MODULE_AUTHOR("Rafał Miłecki"); |
@@ -77,6 +77,7 @@ static int bcm47xxnflash_remove(struct platform_device *pdev) | |||
77 | } | 77 | } |
78 | 78 | ||
79 | static struct platform_driver bcm47xxnflash_driver = { | 79 | static struct platform_driver bcm47xxnflash_driver = { |
80 | .probe = bcm47xxnflash_probe, | ||
80 | .remove = bcm47xxnflash_remove, | 81 | .remove = bcm47xxnflash_remove, |
81 | .driver = { | 82 | .driver = { |
82 | .name = "bcma_nflash", | 83 | .name = "bcma_nflash", |
@@ -88,13 +89,10 @@ static int __init bcm47xxnflash_init(void) | |||
88 | { | 89 | { |
89 | int err; | 90 | int err; |
90 | 91 | ||
91 | /* | 92 | err = platform_driver_register(&bcm47xxnflash_driver); |
92 | * Platform device "bcma_nflash" exists on SoCs and is registered very | ||
93 | * early, it won't be added during runtime (use platform_driver_probe). | ||
94 | */ | ||
95 | err = platform_driver_probe(&bcm47xxnflash_driver, bcm47xxnflash_probe); | ||
96 | if (err) | 93 | if (err) |
97 | pr_err("Failed to register serial flash driver: %d\n", err); | 94 | pr_err("Failed to register bcm47xx nand flash driver: %d\n", |
95 | err); | ||
98 | 96 | ||
99 | return err; | 97 | return err; |
100 | } | 98 | } |