diff options
author | Sakethram Bommisetti <sakethram.bommisetti@stericsson.com> | 2010-11-16 17:01:25 +0530 |
---|---|---|
committer | Sundar Iyer <sundar.iyer@stericsson.com> | 2010-11-29 16:47:33 +0530 |
commit | 90e0186b0711cc6a93f01a1db4dbe9621233fe20 (patch) | |
tree | 1659fd793eb586babeb51274d230cf5a677f1d61 /drivers/usb | |
parent | c6f050fa38008a47c7b605454f761230bd91f218 (diff) |
Generic:USB:Removing wrong implementation in USB
Removing the wrong function calls in usb which is called by the battery
manager.
ST EricssonID:278744
Change-Id: Ib2db0923dba5b89bc2e05046783a00dbea2e6f54
Signed-off-by: Sakethram Bommisetti <sakethram.bommisetti@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/8985
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/musb/stm_musb.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/drivers/usb/musb/stm_musb.c b/drivers/usb/musb/stm_musb.c index 12ab9daa370..f32f6d2f9d6 100644 --- a/drivers/usb/musb/stm_musb.c +++ b/drivers/usb/musb/stm_musb.c @@ -69,44 +69,6 @@ ab8500_bm_usb_state_changed_wrapper(u8 bm_usb_state) ab8500_bm_usb_state_changed(bm_usb_state, musb_power); } -void -ab8500_bm_ulpi_set_char_speed_mode(u8 mode) -{ - if (musb_status == NULL) { - printk(KERN_ALERT "musb_status is NULL. " - "Cannot write to ULPI.\n"); - return; - } - - mode &= 3; - mode <<= 5; - mode |= ulpi_read_register(musb_status, ULPI_ULINKSTAT) & - ~ULPI_ULINKSTAT_CHARSPEED_MODE; - - printk(KERN_INFO "Writing 0x%02x to USB char-speed mode bits\n", mode); - - ulpi_write_register(musb_status, ULPI_ULINKSTAT, mode); -} - -void -ab8500_bm_ulpi_set_char_suspend_mode(u8 suspend) -{ - if (musb_status == NULL) { - printk(KERN_ALERT "musb_status is NULL. " - "Cannot write to ULPI.\n"); - return; - } - - suspend &= 1; - suspend <<= 7; - suspend |= ulpi_read_register(musb_status, ULPI_ULINKSTAT) & - ~ULPI_ULINKSTAT_SUSPEND_MODE; - - printk(KERN_INFO "Writing 0x%02x to USB suspend mode bits\n", suspend); - - ulpi_write_register(musb_status, ULPI_ULINKSTAT, suspend); -} - /* Sys interfaces */ static struct kobject *usbstatus_kobj; static ssize_t usb_cable_status |