瀏覽代碼

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 <rdunlap@infradead.org>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Peter Huewe 12 年之前
父節點
當前提交
f6fcf7f79b
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/staging/goldfish/Kconfig

+ 1 - 0
drivers/staging/goldfish/Kconfig

@@ -7,6 +7,7 @@ config GOLDFISH_AUDIO
 config MTD_GOLDFISH_NAND
 config MTD_GOLDFISH_NAND
 	tristate "Goldfish NAND device"
 	tristate "Goldfish NAND device"
 	depends on GOLDFISH
 	depends on GOLDFISH
+	depends on MTD
 	help
 	help
 	  Drives the emulated NAND flash device on the Google Goldfish
 	  Drives the emulated NAND flash device on the Google Goldfish
 	  Android virtual device.
 	  Android virtual device.