diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2013-01-25 05:37:26 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-01-30 15:06:46 -0500 |
commit | 73e4dbe4ca9d5573f84818964276668b42177de2 (patch) | |
tree | 141424d4f478095da01e4417a82ec9b4c9457303 /drivers/bcma/main.c | |
parent | c7a4a9e3880cc8cdc1f2958796e517d9d96ff7e0 (diff) |
bcma: register platform device for parallel flash
Signed-off-by: John W. Linville <linville@tuxdriver.com>
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 d12b7da556e1..95ba5756c67e 100644 --- a/drivers/bcma/main.c +++ b/drivers/bcma/main.c | |||
@@ -149,6 +149,14 @@ static int bcma_register_cores(struct bcma_bus *bus) | |||
149 | dev_id++; | 149 | dev_id++; |
150 | } | 150 | } |
151 | 151 | ||
152 | #ifdef CONFIG_BCMA_DRIVER_MIPS | ||
153 | if (bus->drv_cc.pflash.present) { | ||
154 | err = platform_device_register(&bcma_pflash_dev); | ||
155 | if (err) | ||
156 | bcma_err(bus, "Error registering parallel flash\n"); | ||
157 | } | ||
158 | #endif | ||
159 | |||
152 | #ifdef CONFIG_BCMA_SFLASH | 160 | #ifdef CONFIG_BCMA_SFLASH |
153 | if (bus->drv_cc.sflash.present) { | 161 | if (bus->drv_cc.sflash.present) { |
154 | err = platform_device_register(&bcma_sflash_dev); | 162 | err = platform_device_register(&bcma_sflash_dev); |