usb: otg: utils: devres: Add API's to associate a device with the phy
authorKishon Vijay Abraham I <kishon@ti.com>
Fri, 22 Jun 2012 11:32:47 +0000 (17:02 +0530)
committerFelipe Balbi <balbi@ti.com>
Mon, 25 Jun 2012 11:06:16 +0000 (14:06 +0300)
commit410219dcd2ba8d8b4bcfa9c232f35bf505bc021a
tree6aadab913c25bf86763649907a2d4ec0b9fa1582
parent662dca54ca67c92b7aa14b9a2ec54acacf33ce45
usb: otg: utils: devres: Add API's to associate a device with the phy

Used devres API's to associate the phy with a device so that on
driver detach, release function is invoked on the devres data(usb_phy)
and devres data(usb_phy) is released.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/otg/otg.c
include/linux/usb/otg.h