Skip to content

Commit

Permalink
staging/keucr: fix build when CONFIG_PM is not enabled
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Randy Dunlap authored and Greg Kroah-Hartman committed Sep 16, 2010
1 parent 7311530 commit e23f773
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions drivers/staging/keucr/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit e23f773

Please sign in to comment.