aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2009-07-29 23:56:48 +0400
committerPaul Fertser <fercerpav@gmail.com>2009-08-02 11:27:40 +0400
commit9190ad6503355a829b20154286dcb8a3ad482d8d (patch)
treec2602f8c5545256d3f2f1d097e00d6492d8837bf /arch
parent53bbb82febf74555ee737998d761b7d8e6b1317e (diff)
gta02: use a dedicated function to query usb online status
We need to use a dedicated function because we can't get charger status from an irq context and that is required by usb gadgets. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-s3c2442/mach-gta02.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-s3c2442/mach-gta02.c b/arch/arm/mach-s3c2442/mach-gta02.c
index d70c3e62500..cb272fd49ac 100644
--- a/arch/arm/mach-s3c2442/mach-gta02.c
+++ b/arch/arm/mach-s3c2442/mach-gta02.c
@@ -391,7 +391,7 @@ static int gta02_get_charger_online_status(void)
{
struct pcf50633 *pcf = gta02_pcf;
- return pcf50633_mbc_get_status(pcf) & PCF50633_MBC_USB_ONLINE;
+ return pcf50633_mbc_get_usb_online_status(pcf);
}
static int gta02_get_charger_active_status(void)
@@ -484,7 +484,7 @@ static int gta02_udc_vbus_status(void)
if (!gta02_pcf)
return -ENODEV;
- return !!(pcf50633_mbc_get_status(pcf) & PCF50633_MBC_USB_ONLINE);
+ return pcf50633_mbc_get_usb_online_status(pcf);
}
#else /* !CONFIG_CHARGER_PCF50633 */
#define gta02_get_charger_online_status NULL