[PATCH -mmotm] spi: fix dw_spi_pci build when CONFIG_PM=n

From: Randy Dunlap
Date: Wed Oct 14 2009 - 18:02:19 EST


From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>

Fix names of the suspend and resume macros so that build succeeds
when CONFIG_PM=n:

drivers/spi/dw_spi_pci.c:150: error: 'spi_suspend' undeclared here (not in a function)
drivers/spi/dw_spi_pci.c:151: error: 'spi_resume' undeclared here (not in a function)

Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
Cc: Feng Tang <feng.tang@xxxxxxxxx>
---
drivers/spi/dw_spi_pci.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

--- mmotm-2009-1013-2113.orig/drivers/spi/dw_spi_pci.c
+++ mmotm-2009-1013-2113/drivers/spi/dw_spi_pci.c
@@ -132,8 +132,8 @@ static int spi_resume(struct pci_dev *pd
return dw_spi_resume_host(&dwpci->dws);
}
#else
-#define mrst_spi_suspend NULL
-#define mrst_spi_resume NULL
+#define spi_suspend NULL
+#define spi_resume NULL
#endif

static const struct pci_device_id pci_ids[] __devinitdata = {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/