From mboxrd@z Thu Jan 1 00:00:00 1970 From: Felipe Balbi Subject: [PATCH] [USB/CORE/USB.C] Fixes autosuspend and auto_pm fields missing Date: Tue, 31 Oct 2006 16:28:06 -0400 Message-ID: <4547B1D6.5020809@nokia.com> References: <4547AB5C.4010801@nokia.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040708060105090505020001" Return-path: In-Reply-To: <4547AB5C.4010801@nokia.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-omap-open-source-bounces@linux.omap.com Errors-To: linux-omap-open-source-bounces@linux.omap.com Cc: Linux OMAP Mailing List List-Id: linux-omap@vger.kernel.org This is a multi-part message in MIME format. --------------040708060105090505020001 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Please forget about the other patch... this is the right one... sorry guys ext Felipe Balbi wrote: > This small patch changes omap_h3_1710_defconfig to fix the bug. > > The catch is: for struct usb_device to have the fields struct > work_struct autosuspend and unsigned autopm:1 CONFIG_PM should be set > "y". > > > make uImage > CHK include/linux/version.h > make[1]: `include/asm-arm/mach-types.h' is up to date. > CHK include/linux/utsrelease.h > CHK include/linux/compile.h > CC drivers/usb/core/usb.o > drivers/usb/core/usb.c: In function 'usb_release_dev': > drivers/usb/core/usb.c:177: error: 'struct usb_device' has no member > named 'autosuspend' > drivers/usb/core/usb.c: In function 'usb_autosuspend_work': > drivers/usb/core/usb.c:218: error: 'struct usb_device' has no member > named 'auto_pm' > drivers/usb/core/usb.c:219: warning: statement with no effect > make[3]: *** [drivers/usb/core/usb.o] Error 1 > make[2]: *** [drivers/usb/core] Error 2 > make[1]: *** [drivers/usb] Error 2 > make: *** [drivers] Error 2 > > -- Best Regards, Felipe Balbi ext-felipe.lima@nokia.com OSMRC - INdT --------------040708060105090505020001 Content-Type: text/x-patch; name="patch-autosuspend-auto_pm.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch-autosuspend-auto_pm.diff" Index: linux-omap-2.6-dev/arch/arm/configs/omap_h3_1710_defconfig =================================================================== --- linux-omap-2.6-dev.orig/arch/arm/configs/omap_h3_1710_defconfig 2006-10-31 14:30:35.000000000 -0400 +++ linux-omap-2.6-dev/arch/arm/configs/omap_h3_1710_defconfig 2006-10-31 16:26:56.000000000 -0400 @@ -223,7 +223,7 @@ CONFIG_BINFMT_AOUT=y # # Power management options # -# CONFIG_PM is not set +CONFIG_PM=y # # Networking --------------040708060105090505020001 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --------------040708060105090505020001--