aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ssb/main.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2013-01-25 05:36:26 -0500
committerJohn W. Linville <linville@tuxdriver.com>2013-01-30 15:06:46 -0500
commitc7a4a9e3880cc8cdc1f2958796e517d9d96ff7e0 (patch)
tree1304991d04dc516c590320b996f976cf61e1f893 /drivers/ssb/main.c
parentf1ab57e3a114173fdb94219937191f0c673e87dd (diff)
ssb: register platform device for parallel flash
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/ssb/main.c')
-rw-r--r--drivers/ssb/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/ssb/main.c b/drivers/ssb/main.c
index c82c5c95fe85..db7705743a8f 100644
--- a/drivers/ssb/main.c
+++ b/drivers/ssb/main.c
@@ -540,6 +540,14 @@ static int ssb_devices_register(struct ssb_bus *bus)
540 dev_idx++; 540 dev_idx++;
541 } 541 }
542 542
543#ifdef CONFIG_SSB_DRIVER_MIPS
544 if (bus->mipscore.pflash.present) {
545 err = platform_device_register(&ssb_pflash_dev);
546 if (err)
547 pr_err("Error registering parallel flash\n");
548 }
549#endif
550
543 return 0; 551 return 0;
544error: 552error:
545 /* Unwind the already registered devices. */ 553 /* Unwind the already registered devices. */