From: Inaky Perez-Gonzalez Date: Thu, 8 Jan 2009 19:08:25 +0000 (-0800) Subject: i2400m/usb: wrap USB power saving in #ifdef CONFIG_PM X-Git-Tag: v2.6.29-rc1~45^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fd7a1d92b4462acaa460bb0f58b12ede6ffe6b9;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed