diff options
Diffstat (limited to 'drivers/bcma/main.c')
-rw-r--r-- | drivers/bcma/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/bcma/main.c b/drivers/bcma/main.c index a501d259287c..a8f570d69075 100644 --- a/drivers/bcma/main.c +++ b/drivers/bcma/main.c | |||
@@ -145,6 +145,14 @@ static int bcma_register_cores(struct bcma_bus *bus) | |||
145 | } | 145 | } |
146 | #endif | 146 | #endif |
147 | 147 | ||
148 | #ifdef CONFIG_BCMA_NFLASH | ||
149 | if (bus->drv_cc.nflash.present) { | ||
150 | err = platform_device_register(&bcma_nflash_dev); | ||
151 | if (err) | ||
152 | bcma_err(bus, "Error registering NAND flash\n"); | ||
153 | } | ||
154 | #endif | ||
155 | |||
148 | return 0; | 156 | return 0; |
149 | } | 157 | } |
150 | 158 | ||