commit | 47fd6f7c94e15eb5f97dd1cbb0427a46b03c8185 | [log] [tgz] |
---|---|---|
author | Jaya Kumar <jayakumar.lkml@gmail.com> | Tue Nov 18 02:32:36 2008 +0100 |
committer | Russell King <rmk+kernel@arm.linux.org.uk> | Sun Nov 23 15:49:59 2008 +0000 |
tree | dc9842ab5729f971c21947232c86fb928d45125a | |
parent | 844c6f6a36984c5fe1bcc2d68a88f2ed212d1eef [diff] |
[ARM] 5335/1: pxa25x_udc: Fix is_vbus_present to return 1 or 0 the use of is_blah() suggests a 1 or 0 return. This assumption is made in pxa25x_udc code such as: dev->vbus = is_vbus_present(); where dev->vbus is a bitfield. This fix allows pxa25x_udc_probe to correctly detect vbus. Other changes were to make its use consistent in the rest of the code. Signed-off-by: Jaya Kumar <jayakumar.lkml@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>