summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalle Vahlman <kalle.vahlman@movial.com>2012-05-09 08:47:26 +0000
committerKalle Vahlman <kalle.vahlman@movial.com>2012-05-09 08:51:45 +0000
commita8d9cc1d9a4ccd88d539da8ef779cd753c30efc6 (patch)
tree263207a9cf310f15d6922131f39cca12317ed628
parent0565663c72513393ed90e4d321447df391c64288 (diff)
Fix initialization order of USB things
g_multi should be loaded _after_ enabling the USB driver. Also remove disabling the USB driver as it seems to not be sensible...
-rwxr-xr-xsnowball5
1 files changed, 1 insertions, 4 deletions
diff --git a/snowball b/snowball
index 13bd060..16ce49f 100755
--- a/snowball
+++ b/snowball
@@ -7,16 +7,13 @@
# (Limited) OTG HOST support
USB_BTD=/sys/devices/platform/ab8500-i2c.0/ab8500-usb.0/boot_time_device
start_musb() {
- modprobe g_multi
if [ -f $USB_BTD ]; then
echo 1 > $USB_BTD
fi
+ modprobe g_multi
}
stop_musb() {
modprobe -r g_multi
- if [ -f $USB_BTD ]; then
- echo 0 > $USB_BTD
- fi
}
# Bluetooth