Patchwork [-next] mtd: redwood depends on MTD_PARTITIONS

login
register
mail settings
Submitter Randy Dunlap
Date July 29, 2010, 5:13 p.m.
Message ID <20100729101306.36c20611.randy.dunlap@oracle.com>
Download mbox | patch
Permalink /patch/60287/
State New
Headers show

Comments

Randy Dunlap - July 29, 2010, 5:13 p.m.
From: Randy Dunlap <randy.dunlap@oracle.com>

redwood uses add/del_mtd_partitions(), so it should depend on
MTD_PARTITIONS.

ERROR: "add_mtd_partitions" [drivers/mtd/maps/redwood.ko] undefined!
ERROR: "del_mtd_partitions" [drivers/mtd/maps/redwood.ko] undefined!

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 drivers/mtd/maps/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

--- linux-next-20100729.orig/drivers/mtd/maps/Kconfig
+++ linux-next-20100729/drivers/mtd/maps/Kconfig
@@ -321,7 +321,7 @@  config MTD_CFI_FLAGADM
 
 config MTD_REDWOOD
 	tristate "CFI Flash devices mapped on IBM Redwood"
-	depends on MTD_CFI
+	depends on MTD_CFI && MTD_PARTITIONS
 	help
 	  This enables access routines for the flash chips on the IBM
 	  Redwood board. If you have one of these boards and would like to