From: Fabio Estevam Date: Tue, 23 Nov 2010 19:02:13 +0000 (-0200) Subject: mtd: mxc_nand: Fix warning on nr_parts unused variable X-Git-Tag: v2.6.38-rc1~21^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ebf0622cdc5d2b51f22b68a0983d90df8a976c8;p=pandora-kernel.git mtd: mxc_nand: Fix warning on nr_parts unused variable If CONFIG_MTD_PARTITIONS is not selected, then the following warning is generated: CC drivers/mtd/nand/mxc_nand.o drivers/mtd/nand/mxc_nand.c: In function 'mxcnd_probe': drivers/mtd/nand/mxc_nand.c:1014: warning: unused variable 'nr_parts' Fix it by marking nr_parts as __maybe_unused. Signed-off-by: Fabio Estevam Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed