]> git.baikalelectronics.ru Git - kernel.git/commit
usb: ci_hdrc_imx: Return -EINVAL for missing USB PHY
authorMarkus Pargmann <mpa@pengutronix.de>
Tue, 22 Jul 2014 02:09:43 +0000 (10:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jul 2014 23:31:36 +0000 (16:31 -0700)
commit66ca1a40c3789c22b4fa9e2b0ef4d88a357fe46a
treeab706db641808da3a87db9a3e1f708f78c20d09f
parent176e140a7285eab81a6f7b5faee7e5f4bd15e148
usb: ci_hdrc_imx: Return -EINVAL for missing USB PHY

-ENODEV is interpreted by the generic driver probing function as a
non-matching driver. This leads to a missing probe failure message.

Also a missing USB PHY is more of an invalid configuration of the usb
driver because it is necessary.

This patch returns -EINVAL if devm_usb_get_phy_by_phandle() returned -ENODEV.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/ci_hdrc_imx.c