]> www.infradead.org Git - users/jedix/linux-maple.git/commit
USB: workaround for bug in old version of GCC
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 27 Oct 2011 15:20:21 +0000 (11:20 -0400)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:19:19 +0000 (11:19 -0800)
commit1213352cd0d13c6fe846a007faa043c877af8a7e
treedac457603e3b805a338dad57155631cf02c38082
parentd8313358a936805edffaca4b3dc4572820f8061f
USB: workaround for bug in old version of GCC

commit 97ff22ee3b4cb3a334f7385e269773141aed702f upstream.

This patch (as1491) works around a bug in GCC-3.4.6, which is still
supposed to be supported.  The number of microseconds in the udelay()
call in quirk_usb_disable_ehci() is fixed at 100, but the compiler
doesn't understand this and generates a link-time error.  So we
replace the otherwise unused variable "delta" with a simple constant
100.  This same pattern is already used in other delay loops in that
source file.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-by: Konrad Rzepecki <krzepecki@dentonet.pl>
Tested-by: Konrad Rzepecki <krzepecki@dentonet.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/pci-quirks.c