[MTD] CK804XROM must depend on PCI

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Feb 9 06:59:02 EST 2007


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=862c93b991e7132bafb078ec7ab5a0dee9e27ae6
Commit:     862c93b991e7132bafb078ec7ab5a0dee9e27ae6
Parent:     aa8f1278553c554f1fb3fd6fb0987dd547c7d7cf
Author:     akpm at osdl.org <akpm at osdl.org>
AuthorDate: Thu Jan 25 15:15:17 2007 -0800
Committer:  David Woodhouse <dwmw2 at infradead.org>
CommitDate: Fri Feb 9 11:40:06 2007 +0000

    [MTD] CK804XROM must depend on PCI
    
    CONFIG_MTD_CK804XROM=y, CONFIG_PCI=n results in the following compile
    error:
    
      CC      drivers/mtd/maps/ck804xrom.o
    ck804xrom.c: In function 'ck804xrom_init_one':
    ck804xrom.c:114: error: implicit declaration of function 'pci_dev_get'
    ck804xrom.c:114: warning: assignment makes pointer from integer without a cast
    make[4]: *** [drivers/mtd/maps/ck804xrom.o] Error 1
    
    Considering what hardware this driver is driving, a dependency on PCI
    also seems logical.
    
    Signed-off-by: Adrian Bunk <bunk at stusta.de>
    Cc: Ryan Jackson <rjackson at lnxi.com>
    Signed-off-by: Andrew Morton <akpm at osdl.org>
    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 f457315..bbf0553 100644
--- a/drivers/mtd/maps/Kconfig
+++ b/drivers/mtd/maps/Kconfig
@@ -204,7 +204,7 @@ config MTD_ESB2ROM
 
 config MTD_CK804XROM
 	tristate "BIOS flash chip on Nvidia CK804"
-	depends on X86 && MTD_JEDECPROBE
+	depends on X86 && MTD_JEDECPROBE && PCI
 	help
 	  Support for treating the BIOS flash chip on nvidia motherboards
 	  as an MTD device - with this you can reprogram your BIOS.



More information about the linux-mtd-cvs mailing list