mtd: fix build error in m25p80.c
authorAndres Salomon <dilinger@queued.net>
Sat, 30 Oct 2010 04:04:19 +0000 (21:04 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 30 Oct 2010 11:46:08 +0000 (12:46 +0100)
commit40847437f15221b5822ba70550e8b9fcccfb9bb3
tree72e654f35832564b1be168fa38e9aeeffde28ef9
parent8cc9de3ebdf654601db51a516267dff89c49acc3
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 <dilinger@queued.net>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/devices/m25p80.c