]> git.baikalelectronics.ru Git - kernel.git/commit
i2400m/usb: wrap USB power saving in #ifdef CONFIG_PM
authorInaky Perez-Gonzalez <inaky@linux.intel.com>
Thu, 8 Jan 2009 19:08:25 +0000 (11:08 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Jan 2009 19:08:25 +0000 (11:08 -0800)
commitf6a55764d122c479ad91605f696b084bdda4d628
tree16b4dd7ddca6cca4cdcb4a5d76643284c627ccaf
parent22d02eb6716bfd5fe73da40c98a4d4ce3a3ea3a0
i2400m/usb: wrap USB power saving in #ifdef CONFIG_PM

Current code was assuming PM was always enabled, which is not
correct. Code which accesses members in the struct usb_device that are
dependant on CONFIG_PM must be protected the same.

Reported by Randy Dunlap from a build error in the linux-next tree on
07/01/2009.

Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wimax/i2400m/usb.c