]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mtd: fix scb2_flash build when PCI is not enabled
authorRandy Dunlap <rdunlap@xenotime.net>
Mon, 16 Apr 2012 19:50:37 +0000 (12:50 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 14 May 2012 03:52:16 +0000 (22:52 -0500)
scb2_flash.c is a PCI driver, but its build fails when CONFIG_PCI
is not enabled, so make it depend on PCI.

drivers/mtd/maps/scb2_flash.c:237:1: warning: data definition has no type or storage class
drivers/mtd/maps/scb2_flash.c:237:1: warning: type defaults to 'int' in declaration of 'module_pci_driver'
drivers/mtd/maps/scb2_flash.c:237:1: warning: parameter names (without types) in function declaration

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/maps/Kconfig

index 8af67cfd671acac48ad7885a6e73ebe2f0ecdbff..5ba2458e799ac4e3db5d8d78b7c9b4814bec5a09 100644 (file)
@@ -224,7 +224,7 @@ config MTD_CK804XROM
 
 config MTD_SCB2_FLASH
        tristate "BIOS flash chip on Intel SCB2 boards"
-       depends on X86 && MTD_JEDECPROBE
+       depends on X86 && MTD_JEDECPROBE && PCI
        help
          Support for treating the BIOS flash chip on Intel SCB2 boards
          as an MTD device - with this you can reprogram your BIOS.