usb: dwc2: Make PHY optional
authorJohn Youn <John.Youn@synopsys.com>
Fri, 13 Nov 2015 17:02:10 +0000 (17:02 +0000)
committerFelipe Balbi <balbi@ti.com>
Thu, 19 Nov 2015 20:48:49 +0000 (14:48 -0600)
commitd0464bcf12af54bafe02dd23ac5bd75d825f9fdd
tree94532edd9b53c89932c59ae1c83160540bbd9a44
parentc9eb29503e9655e70448bbbf3697d08a56d24854
usb: dwc2: Make PHY optional

Fixes commit 09a75e857790
("usb: dwc2: refactor common low-level hw code to platform.c")

The above commit consolidated the low-level phy access into a common
location. This change introduced a check from the gadget requiring
that a PHY is specified. This requirement never existed on the host
side and broke some platforms when it was moved into platform.c.

The gadget doesn't require the PHY either so remove the check.

Acked-by: Eric Anholt <eric@anholt.net>
Reported-by: Stefan Wahren <info@lategoodbye.de>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Fixes: 09a75e857790 ("usb: dwc2: refactor common low-level hw code to platform.c")
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/platform.c