summaryrefslogtreecommitdiff
path: root/drivers/staging/keucr
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2010-09-14 15:41:41 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2010-09-16 12:29:31 -0700
commite23f773ee481aac96814aa9a4dbb0a7a4e0e9a7a (patch)
tree272baaa43a3c0e2f5477b64d00ba0619577e64bb /drivers/staging/keucr
parent73115300353c7a48022c2f6260a4a9002393a784 (diff)
staging/keucr: fix build when CONFIG_PM is not enabled
keucr driver has a build error when CONFIG_PM is not enabled, so fix that. drivers/staging/keucr/usb.c:42: error: 'struct us_data' has no member named 'suspend_resume_hook' drivers/staging/keucr/usb.c:43: error: 'struct us_data' has no member named 'suspend_resume_hook' drivers/staging/keucr/usb.c:64: error: 'struct us_data' has no member named 'suspend_resume_hook' drivers/staging/keucr/usb.c:65: error: 'struct us_data' has no member named 'suspend_resume_hook' Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Cc: Al Cho <acho@novell.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/keucr')
-rw-r--r--drivers/staging/keucr/usb.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/staging/keucr/usb.c b/drivers/staging/keucr/usb.c
index d7dab727cd6f..260828ea8eaf 100644
--- a/drivers/staging/keucr/usb.c
+++ b/drivers/staging/keucr/usb.c
@@ -30,6 +30,7 @@ static struct usb_device_id eucr_usb_ids [] = {
MODULE_DEVICE_TABLE (usb, eucr_usb_ids);
+#ifdef CONFIG_PM
int eucr_suspend(struct usb_interface *iface, pm_message_t message)
{
@@ -102,6 +103,14 @@ int eucr_reset_resume(struct usb_interface *iface)
}
//EXPORT_SYMBOL_GPL(usb_stor_reset_resume);
+#else
+
+#define eucr_suspend NULL
+#define eucr_resume NULL
+#define eucr_reset_resume NULL
+
+#endif
+
//----- eucr_pre_reset() ---------------------
static int eucr_pre_reset(struct usb_interface *iface)
{