From: Peter Huewe Date: Thu, 7 Feb 2013 22:46:38 +0000 (+0100) Subject: staging/goldfish: Add MTD dependency to KCONFIG X-Git-Tag: v3.9-rc1~127^2~65 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6fcf7f79b971cad61d9f010e750d74df9309517;p=profile%2Fivi%2Fkernel-x86-ivi.git staging/goldfish: Add MTD dependency to KCONFIG If CONFIG_MTD is not set goldfish_nand fails to compile with the following linker warnings: drivers/built-in.o: In function `goldfish_nand_remove': goldfish_nand.c:(.text+0x6e7d0e): undefined reference to `mtd_device_unregister' drivers/built-in.o: In function `goldfish_nand_erase': goldfish_nand.c:(.text+0x6e8ba2): undefined reference to `mtd_erase_callback' drivers/built-in.o: In function `goldfish_nand_init_device': goldfish_nand.c:(.text+0x6e8eba): undefined reference to `mtd_device_parse_register' Reported-by: Randy Dunlap Signed-off-by: Peter Huewe Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/goldfish/Kconfig b/drivers/staging/goldfish/Kconfig index d6c98d0..4e09460 100644 --- a/drivers/staging/goldfish/Kconfig +++ b/drivers/staging/goldfish/Kconfig @@ -7,6 +7,7 @@ config GOLDFISH_AUDIO config MTD_GOLDFISH_NAND tristate "Goldfish NAND device" depends on GOLDFISH + depends on MTD help Drives the emulated NAND flash device on the Google Goldfish Android virtual device.