atheros[ar2315-spiflash]: print detected flash size

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

SVN-Revision: 41318
master
John Crispin 11 years ago
parent 8e3b055b2a
commit 79b4598a7f
  1. 4
      target/linux/atheros/patches-3.10/120-spiflash.patch

@ -23,7 +23,7 @@
--- /dev/null --- /dev/null
+++ b/drivers/mtd/devices/ar2315.c +++ b/drivers/mtd/devices/ar2315.c
@@ -0,0 +1,525 @@ @@ -0,0 +1,527 @@
+ +
+/* +/*
+ * MTD driver for the SPI Flash Memory support on Atheros AR2315 + * MTD driver for the SPI Flash Memory support on Atheros AR2315
@ -494,6 +494,8 @@
+ mtd->_write = spiflash_write; + mtd->_write = spiflash_write;
+ mtd->owner = THIS_MODULE; + mtd->owner = THIS_MODULE;
+ +
+ dev_info(&pdev->dev, "%lld Kbytes flash detected\n", mtd->size >> 10);
+
+#if defined CONFIG_MTD_REDBOOT_PARTS || CONFIG_MTD_MYLOADER_PARTS +#if defined CONFIG_MTD_REDBOOT_PARTS || CONFIG_MTD_MYLOADER_PARTS
+ /* parse redboot partitions */ + /* parse redboot partitions */
+ +

Loading…
Cancel
Save