Commit 47d0505b authored by Randy Dunlap's avatar Randy Dunlap Committed by David Woodhouse

mtd: fix scb2_flash build when PCI is not enabled

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: default avatarRandy Dunlap <rdunlap@xenotime.net>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent d7efe228
...@@ -224,7 +224,7 @@ config MTD_CK804XROM ...@@ -224,7 +224,7 @@ config MTD_CK804XROM
config MTD_SCB2_FLASH config MTD_SCB2_FLASH
tristate "BIOS flash chip on Intel SCB2 boards" tristate "BIOS flash chip on Intel SCB2 boards"
depends on X86 && MTD_JEDECPROBE depends on X86 && MTD_JEDECPROBE && PCI
help help
Support for treating the BIOS flash chip on Intel SCB2 boards Support for treating the BIOS flash chip on Intel SCB2 boards
as an MTD device - with this you can reprogram your BIOS. as an MTD device - with this you can reprogram your BIOS.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment