diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2013-01-25 14:36:26 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-01-31 00:06:46 +0400 |
commit | c7a4a9e3880cc8cdc1f2958796e517d9d96ff7e0 (patch) | |
tree | 1304991d04dc516c590320b996f976cf61e1f893 /drivers/ssb/main.c | |
parent | f1ab57e3a114173fdb94219937191f0c673e87dd (diff) | |
download | linux-c7a4a9e3880cc8cdc1f2958796e517d9d96ff7e0.tar.xz |
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.c | 8 |
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) dev_idx++; } +#ifdef CONFIG_SSB_DRIVER_MIPS + if (bus->mipscore.pflash.present) { + err = platform_device_register(&ssb_pflash_dev); + if (err) + pr_err("Error registering parallel flash\n"); + } +#endif + return 0; error: /* Unwind the already registered devices. */ |