[MTD] fix CONFIG_MTD_SHARP_SL if CONFIG_MTD=m

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Wed Nov 28 06:59:14 EST 2007


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=73061e4c2dcfba17c6a0137a1199d3e00d03b14c
Commit:     73061e4c2dcfba17c6a0137a1199d3e00d03b14c
Parent:     cccb45d4b34728d33638085435f8fdc0a83e0c00
Author:     Stanislav Brabec <utx at penguin.cz>
AuthorDate: Mon Nov 19 22:33:02 2007 +0100
Committer:  David Woodhouse <dwmw2 at infradead.org>
CommitDate: Wed Nov 28 11:56:19 2007 +0000

    [MTD] fix CONFIG_MTD_SHARP_SL if CONFIG_MTD=m
    
    Sharp Zaurus SL-C3200 with CONFIG_MTD=m and CONFIG_MTD_SHARP_SL=y (as it
    is bool) lost support for the ROM flash. With CONFIG_MTD=y it has no
    problems.
    
    It is caused by losing of compiled code of
    drivers/mtd/maps/sharpsl-flash.o.
    It was linked to drivers/mtd/maps/built-in.o and drivers/mtd/built-in.o,
    but lost and not linked to drivers/built-in.o (because CONFIG_MTD!=y).
    
    Patch below fixes this problem by creating sharpsl-flash.ko (and the
    code works correctly as a module).
    
    Signed-off-by: Stanislav Brabec <utx at penguin.cz>
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 drivers/mtd/maps/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/maps/Kconfig b/drivers/mtd/maps/Kconfig
index a592fc0..93dcb78 100644
--- a/drivers/mtd/maps/Kconfig
+++ b/drivers/mtd/maps/Kconfig
@@ -576,7 +576,7 @@ config MTD_BAST_MAXSIZE
 	default "4"
 
 config MTD_SHARP_SL
-	bool "ROM mapped on Sharp SL Series"
+	tristate "ROM mapped on Sharp SL Series"
 	depends on ARCH_PXA
 	help
 	  This enables access to the flash chip on the Sharp SL Series of PDAs.



More information about the linux-mtd-cvs mailing list