Skip to content

Commit

Permalink
mtd/nand/r852: fix build for CONFIG_PM=n
Browse files Browse the repository at this point in the history
Fix r852 build for the case of CONFIG_PM=n.

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

This patch leaves r852_pm_ops untouched.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Randy Dunlap authored and David Woodhouse committed Mar 9, 2010
1 parent fb45d32 commit b2aaf7a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/mtd/nand/r852.c
Original file line number Diff line number Diff line change
Expand Up @@ -1019,6 +1019,7 @@ void r852_shutdown(struct pci_dev *pci_dev)
pci_disable_device(pci_dev);
}

#ifdef CONFIG_PM
int r852_suspend(struct device *device)
{
struct r852_device *dev = pci_get_drvdata(to_pci_dev(device));
Expand Down Expand Up @@ -1093,6 +1094,10 @@ int r852_resume(struct device *device)
r852_update_card_detect(dev);
return 0;
}
#else
#define r852_suspend NULL
#define r852_resume NULL
#endif

static const struct pci_device_id r852_pci_id_tbl[] = {

Expand Down

0 comments on commit b2aaf7a

Please sign in to comment.