phy: let phy_provider_register be the last step in registering PHY
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 17 Feb 2014 08:59:25 +0000 (14:29 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Feb 2014 20:13:16 +0000 (12:13 -0800)
commit64fe1891696cdef4603b5f2d7c3a846bce8cf42b
tree93b9f7f93fa20d351f1a09c847b1e275cfff23a6
parentb51fbf9fb0c32c1a98f824ab5d6f59b17b39ef9e
phy: let phy_provider_register be the last step in registering PHY

Registering phy_provider before creating the PHY can result in PHY
callbacks being invoked which will lead to aborts. In order to avoid this
invoke phy_provider_register after phy_create and phy_set_drvdata.

Reported-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/phy/phy-exynos-dp-video.c
drivers/phy/phy-exynos-mipi-video.c
drivers/phy/phy-mvebu-sata.c
drivers/phy/phy-omap-usb2.c
drivers/phy/phy-twl4030-usb.c