[PATCH mmotm] hwmon: fix lis3-spi for CONFIG_PM=n

From: Randy Dunlap
Date: Tue Jun 30 2009 - 17:49:59 EST


From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>

Fix build error when CONFIG_PM=n:

The suspend & resume function names are incorrect for the
PM=n case.

Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
---
drivers/hwmon/lis3lv02d_spi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

--- mmotm-2009-0630-1250.orig/drivers/hwmon/lis3lv02d_spi.c
+++ mmotm-2009-0630-1250/drivers/hwmon/lis3lv02d_spi.c
@@ -108,8 +108,8 @@ static int lis3lv02d_spi_resume(struct s
}

#else
-#define lis3_spi_suspend NULL
-#define lis3_spi_resume NULL
+#define lis3lv02d_spi_suspend NULL
+#define lis3lv02d_spi_resume NULL
#endif

static struct spi_driver lis302dl_spi_driver = {


---
~Randy
LPC 2009, Sept. 23-25, Portland, Oregon
http://linuxplumbersconf.org/2009/
--
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/