phy-sun4i-usb: Simplify missing dr_mode handling
authorHans de Goede <hdegoede@redhat.com>
Wed, 7 Sep 2016 20:20:39 +0000 (22:20 +0200)
committerKishon Vijay Abraham I <kishon@ti.com>
Sat, 10 Sep 2016 11:45:19 +0000 (17:15 +0530)
commit5f90d31cab915e2405f8875e21239d4a6003a170
treea4725d060476ee12e556b9cad4e74d8545e3bffc
parent36f9159ba99076ab643794a83735197b4042b16f
phy-sun4i-usb: Simplify missing dr_mode handling

If we cannot get dr_mode or no id gpio is specified simply assume
peripheral mode, as this is always safe.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-sun4i-usb.c