[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100914154141.9a95d40c.randy.dunlap@oracle.com>
Date: Tue, 14 Sep 2010 15:41:41 -0700
From: Randy Dunlap <randy.dunlap@...cle.com>
To: Stephen Rothwell <sfr@...b.auug.org.au>, gregkh@...e.de,
Al Cho <acho@...ell.com>
Cc: linux-next@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
driverdevel <devel@...verdev.osuosl.org>
Subject: [PATCH -next] staging/keucr: fix build when CONFIG_PM is not
enabled
From: Randy Dunlap <randy.dunlap@...cle.com>
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@...cle.com>
Cc: Al Cho <acho@...ell.com>
---
drivers/staging/keucr/usb.c | 9 +++++++++
1 file changed, 9 insertions(+)
--- linux-next-20100913.orig/drivers/staging/keucr/usb.c
+++ linux-next-20100913/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_interfa
}
//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)
{
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists