OSDN Git Service

usb: phy: omap-usb2: Don't use omap_get_control_dev()
authorRoger Quadros <rogerq@ti.com>
Thu, 3 Oct 2013 15:12:32 +0000 (18:12 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Oct 2013 22:47:30 +0000 (15:47 -0700)
commit478b6c7436c23369611de766032415fa4f5cbb59
treef7eb805da84e191ee267b00d781c55f6b0abae26
parent6cb9310a3290beb8c0d31703a2e76b90a10b4ca0
usb: phy: omap-usb2: Don't use omap_get_control_dev()

omap_get_control_dev() is being deprecated as it doesn't support
multiple instances. As control device is present only from OMAP4
onwards which supports DT only, we use phandles to get the
reference to the control device.

As we don't support non-DT boot, we just bail out on probe
if device node is not present.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/phy/phy-omap-usb2.c