mtd: bcm63xxpart: merge sparelen calculation
commite190401ba1ca20d76f22c1f0aada0abd5bdc1afe
authorJonas Gorski <jonas.gorski@gmail.com>
Mon, 12 Nov 2012 09:52:48 +0000 (12 10:52 +0100)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 21 Nov 2012 15:15:05 +0000 (21 17:15 +0200)
treeb0d435af8591e96b404e44ae018bf97fd709a737
parentfafc3d6880b28fe55af935fd43b23a29d61c537d
mtd: bcm63xxpart: merge sparelen calculation

The length of the spare part is calculated the same way in both branches
so move to a common place.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Reviewed-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/bcm63xxpart.c