Jiri Kosina 0f6f1407e3 HID: do not try to compile PM code with CONFIG_PM unset
Fixes this build breakage in case when CONFIG_PM is not set

drivers/hid/usbhid/hid-core.c: In function 'hid_suspend':
drivers/hid/usbhid/hid-core.c:1220: error: 'struct usb_device' has no member named 'auto_pm'
drivers/hid/usbhid/hid-core.c:1245: error: 'struct usb_device' has no member named 'auto_pm'
drivers/hid/usbhid/hid-core.c:1258: error: 'struct usb_device' has no member named 'auto_pm'

by throwing both the hid_suspend() and hid_resume() away completely
in such case, as they won't be used anyway.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2009-03-25 17:57:58 +01:00
..
2008-10-14 23:50:56 +02:00
2008-10-14 23:50:56 +02:00
2008-10-14 23:50:52 +02:00
2008-10-14 23:50:53 +02:00
2008-10-14 23:50:56 +02:00
2008-10-14 23:50:52 +02:00
2009-02-17 13:25:01 +01:00
2008-10-14 23:50:56 +02:00
2008-10-14 23:51:01 +02:00
2008-10-14 23:50:56 +02:00
2008-10-14 23:50:53 +02:00
2009-01-04 01:00:51 +01:00
2008-10-14 23:50:56 +02:00
2008-10-14 23:50:56 +02:00
2008-10-14 23:50:51 +02:00
2008-10-14 23:51:01 +02:00
2008-10-14 23:51:01 +02:00
2009-03-25 17:57:57 +01:00