usb: otg: twl: use devres API to allocate resources
authorKishon Vijay Abraham I <kishon@ti.com>
Fri, 22 Jun 2012 12:10:55 +0000 (17:40 +0530)
committerFelipe Balbi <balbi@ti.com>
Mon, 25 Jun 2012 11:08:53 +0000 (14:08 +0300)
commitb8a3efa3a363720687d21228d6b23b988a223bbb
tree1b1554813c7d91d05c3c13b42fb4e3ee604cf27a
parentb1183c242a60764afbdfaf39396405b7afa1106c
usb: otg: twl: use devres API to allocate resources

used devres API while allocating memory resource in twl4030 and twl6030
so that these resources are released automatically on driver detach.

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