diff options
author | NeilBrown <neilb@suse.de> | 2015-03-22 23:52:48 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-05-26 17:44:06 +0200 |
commit | f5e4edb8c888958a970b2d42c47d2871a1a4fcdf (patch) | |
tree | 52f6424eac196fe27c5b21f9f9ba88ae7024fcd3 /drivers/power/ipaq_micro_battery.c | |
parent | usb: phy: Add interface to get phy give of device_node. (diff) | |
download | linux-f5e4edb8c888958a970b2d42c47d2871a1a4fcdf.tar.xz linux-f5e4edb8c888958a970b2d42c47d2871a1a4fcdf.zip |
power: twl4030_charger: find associated phy by more reliable means.
twl4030_charger currently finds the associated phy
using usb_get_phy() which will return the first USB2 phy.
If your platform has multiple such phys (as mine does),
this is not reliable (and reliably fails on the GTA04).
Change to use devm_usb_get_phy_by_node(), having found the
node by looking for an appropriately named sibling in
device-tree.
This makes usb-charging dependent on correct device-tree
configuration.
Acked-By: Sebastian Reichel <sre@kernel.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/power/ipaq_micro_battery.c')
0 files changed, 0 insertions, 0 deletions