]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: pxa27x_udc: avoid compiler warnings and misbehavior on buggy hardware
authorEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
Sun, 11 Oct 2009 09:52:48 +0000 (11:52 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:53:06 +0000 (14:53 -0800)
commit4fdb31d9665a9106190d9f8888cf06252c20f3ce
treed63ac40caa8a1b16b25f0827c5b1c8fc0573d1f7
parent2f0e40aba1cafe3a834bfcbac8f1e704d496dab9
USB: pxa27x_udc: avoid compiler warnings and misbehavior on buggy hardware

hardware reports wrong interrupt.  Although such a situation should not
happen, the compiler complains about this access.

This patch adds a sanity check and generates warning to detect such
issues.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/pxa27x_udc.c