bcm63xx: add 3.9 support
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.9 / 030-MTD-bcm63xxpart-use-size-macro-for-CFE-block-size.patch
1 From e2092cf1b164ede62b740c7c95905171fb6232ff Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jogo@openwrt.org>
3 Date: Sat, 23 Mar 2013 12:32:56 +0100
4 Subject: [PATCH v2 1/3] MTD: bcm63xxpart: use size macro for CFE block size
5
6 Signed-off-by: Jonas Gorski <jogo@openwrt.org>
7 ---
8 drivers/mtd/bcm63xxpart.c | 3 ++-
9 1 file changed, 2 insertions(+), 1 deletion(-)
10
11 --- a/drivers/mtd/bcm63xxpart.c
12 +++ b/drivers/mtd/bcm63xxpart.c
13 @@ -27,6 +27,7 @@
14 #include <linux/crc32.h>
15 #include <linux/module.h>
16 #include <linux/kernel.h>
17 +#include <linux/sizes.h>
18 #include <linux/slab.h>
19 #include <linux/vmalloc.h>
20 #include <linux/mtd/mtd.h>
21 @@ -37,7 +38,7 @@
22
23 #define BCM63XX_EXTENDED_SIZE 0xBFC00000 /* Extended flash address */
24
25 -#define BCM63XX_CFE_BLOCK_SIZE 0x10000 /* always at least 64KiB */
26 +#define BCM63XX_CFE_BLOCK_SIZE SZ_64K /* always at least 64KiB */
27
28 #define BCM63XX_CFE_MAGIC_OFFSET 0x4e0
29