summaryrefslogtreecommitdiffstats
path: root/drivers/ssb/driver_chipcommon_sflash.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2013-06-25 10:13:46 +0200
committerJohn W. Linville <linville@tuxdriver.com>2013-08-01 21:49:33 +0200
commit092c46498e76904a3c21124131a29edff56ce3ed (patch)
tree5b077c6ec64b112a821158958ab208cf722b0246 /drivers/ssb/driver_chipcommon_sflash.c
parentrtlwifi: rtl8192cu: fix function declaration header (diff)
downloadlinux-092c46498e76904a3c21124131a29edff56ce3ed.tar.xz
linux-092c46498e76904a3c21124131a29edff56ce3ed.zip
ssb: drop BROKEN from SSB_SFLASH
With recent patches ssb can fetch info about serial flash and register it as a platform device. No more reasons to mark it BROKEN. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Cc: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/ssb/driver_chipcommon_sflash.c')
-rw-r--r--drivers/ssb/driver_chipcommon_sflash.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/ssb/driver_chipcommon_sflash.c b/drivers/ssb/driver_chipcommon_sflash.c
index e84cf04f4416..50328de712fa 100644
--- a/drivers/ssb/driver_chipcommon_sflash.c
+++ b/drivers/ssb/driver_chipcommon_sflash.c
@@ -151,8 +151,8 @@ int ssb_sflash_init(struct ssb_chipcommon *cc)
sflash->size = sflash->blocksize * sflash->numblocks;
sflash->present = true;
- pr_info("Found %s serial flash (blocksize: 0x%X, blocks: %d)\n",
- e->name, e->blocksize, e->numblocks);
+ pr_info("Found %s serial flash (size: %dKiB, blocksize: 0x%X, blocks: %d)\n",
+ e->name, sflash->size / 1024, e->blocksize, e->numblocks);
/* Prepare platform device, but don't register it yet. It's too early,
* malloc (required by device_private_init) is not available yet. */
@@ -160,7 +160,5 @@ int ssb_sflash_init(struct ssb_chipcommon *cc)
sflash->size;
ssb_sflash_dev.dev.platform_data = sflash;
- pr_err("Serial flash support is not implemented yet!\n");
-
- return -ENOTSUPP;
+ return 0;
}