aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2009-05-01 07:12:36 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-05-06 15:15:01 -0400
commit13792578c88961256dd30e3a5d3fa1ac1ec9a7e0 (patch)
treef16b8bd1d8f4a77ef6041d086ab172f06bd05ad1
parent928841b1538df117658ec5977bcf336c27f7747b (diff)
p54usb: Fixes compile error with CONFIG_PM=n
/drivers/net/wireless/p54/p54usb.c: In function 'p54u_probe': /drivers/net/wireless/p54/p54usb.c:923: error: 'struct usb_device' has no member named 'reset_resume' In the struct usb_device the reset_resume attribute is only available when CONFIG_PM is defined. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/p54/p54usb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/p54/p54usb.c b/drivers/net/wireless/p54/p54usb.c
index ec6c95474f1a..f40c0f468b27 100644
--- a/drivers/net/wireless/p54/p54usb.c
+++ b/drivers/net/wireless/p54/p54usb.c
@@ -919,9 +919,11 @@ static int __devinit p54u_probe(struct usb_interface *intf,
919 priv->common.open = p54u_open; 919 priv->common.open = p54u_open;
920 priv->common.stop = p54u_stop; 920 priv->common.stop = p54u_stop;
921 if (recognized_pipes < P54U_PIPE_NUMBER) { 921 if (recognized_pipes < P54U_PIPE_NUMBER) {
922#ifdef CONFIG_PM
922 /* ISL3887 needs a full reset on resume */ 923 /* ISL3887 needs a full reset on resume */
923 udev->reset_resume = 1; 924 udev->reset_resume = 1;
924 err = p54u_device_reset(dev); 925 err = p54u_device_reset(dev);
926#endif
925 927
926 priv->hw_type = P54U_3887; 928 priv->hw_type = P54U_3887;
927 dev->extra_tx_headroom += sizeof(struct lm87_tx_hdr); 929 dev->extra_tx_headroom += sizeof(struct lm87_tx_hdr);