mtd/nand/r852: fix build for CONFIG_PCI disabled
authorRandy Dunlap <randy.dunlap@oracle.com>
Thu, 11 Mar 2010 17:10:32 +0000 (09:10 -0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 11 Mar 2010 17:19:12 +0000 (09:19 -0800)
commitf696aa43fadb13a21c4e723fb6e51bf640dd1363
tree63eebe873b9047bb7c0d7d0e521a3e992699b702
parente4d64cab99a2d659bf9d6fe9ab67666bceb68d87
mtd/nand/r852: fix build for CONFIG_PCI disabled

r852 fails to build when CONFIG_PCI is not enabled since it uses
pci_*() calls and is a PCI driver, so it should depend on PCI
to prevent build errors.
It should also #include <linux/pci.h>.

drivers/mtd/nand/r852.c:1053: error: implicit declaration of function 'pci_prepare_to_sleep'
drivers/mtd/nand/r852.c:1062: error: implicit declaration of function 'pci_back_from_sleep'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/Kconfig
drivers/mtd/nand/r852.c