Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 367481
b: refs/heads/master
c: 261c513
h: refs/heads/master
i:
  367479: 3b70136
v: v3
  • Loading branch information
Rabin Vincent authored and Lee Jones committed Mar 7, 2013
1 parent 8cd2716 commit 465ce1c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aee2b8468caf3d1eed6e329e828bc09eaa61063a
refs/heads/master: 261c5136fa988008387e31cf5381dc5b088e2a17
21 changes: 13 additions & 8 deletions trunk/drivers/power/ab8500_charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,8 @@ static void ab8500_charger_set_usb_connected(struct ab8500_charger *di,
mutex_lock(&di->charger_attached_mutex);
mutex_unlock(&di->charger_attached_mutex);

queue_delayed_work(di->charger_wq,
if (is_ab8500(di->parent))
queue_delayed_work(di->charger_wq,
&di->usb_charger_attached_work,
HZ);
} else {
Expand Down Expand Up @@ -2622,7 +2623,9 @@ static irqreturn_t ab8500_charger_mainchplugdet_handler(int irq, void *_di)

mutex_lock(&di->charger_attached_mutex);
mutex_unlock(&di->charger_attached_mutex);
queue_delayed_work(di->charger_wq,

if (is_ab8500(di->parent))
queue_delayed_work(di->charger_wq,
&di->ac_charger_attached_work,
HZ);
return IRQ_HANDLED;
Expand Down Expand Up @@ -3690,14 +3693,16 @@ static int ab8500_charger_probe(struct platform_device *pdev)
ch_stat = ab8500_charger_detect_chargers(di, false);

if ((ch_stat & AC_PW_CONN) == AC_PW_CONN) {
queue_delayed_work(di->charger_wq,
&di->ac_charger_attached_work,
HZ);
if (is_ab8500(di->parent))
queue_delayed_work(di->charger_wq,
&di->ac_charger_attached_work,
HZ);
}
if ((ch_stat & USB_PW_CONN) == USB_PW_CONN) {
queue_delayed_work(di->charger_wq,
&di->usb_charger_attached_work,
HZ);
if (is_ab8500(di->parent))
queue_delayed_work(di->charger_wq,
&di->usb_charger_attached_work,
HZ);
}

mutex_unlock(&di->charger_attached_mutex);
Expand Down

0 comments on commit 465ce1c

Please sign in to comment.