From: Andres Salomon Date: Sat, 30 Oct 2010 04:04:19 +0000 (-0700) Subject: mtd: fix build error in m25p80.c X-Git-Tag: v2.6.37-rc1~22^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40847437f15221b5822ba70550e8b9fcccfb9bb3;p=pandora-kernel.git mtd: fix build error in m25p80.c While building an x86 distro kernel, I hit the following: Kernel: arch/x86/boot/bzImage is ready (#7) ERROR: "of_mtd_parse_partitions" [drivers/mtd/devices/m25p80.ko] undefined! of_mtd_parse_partitions is defined with MTD_OF_PARTS, and that's only built on PPC and microblaze. The code in question should be wrapped w/ a stricter #ifdef. Signed-off-by: Andres Salomon Acked-by: Grant Likely Signed-off-by: David Woodhouse --- Reading git-diff-tree failed