Only return USB_POWERED if USB_DETECT_BY_DRV is actually defined, which might not...
commit363bb6a56f48106ad89d39ad1b2b8c180bc7cd71
authorgevaerts <gevaerts@a1c6a512-1295-4272-9138-f99709370657>
Sun, 12 Dec 2010 20:20:12 +0000 (12 20:20 +0000)
committergevaerts <gevaerts@a1c6a512-1295-4272-9138-f99709370657>
Sun, 12 Dec 2010 20:20:12 +0000 (12 20:20 +0000)
treed2dd6ebfa1f2e579ae6b8ba228ea7fd6cecb3b39
parentdb4c95f01e31de23e6b31d700911877e3feda547
Only return USB_POWERED if USB_DETECT_BY_DRV is actually defined, which might not be the case for e.g. bootloaders (also fix red)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28820 a1c6a512-1295-4272-9138-f99709370657
firmware/target/arm/as3525/usb-as3525.c