OSDN Git Service

usb: gadget: udc: renesas_usb3: fix double phy_put()
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Mon, 2 Apr 2018 12:21:31 +0000 (21:21 +0900)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 21 May 2018 07:38:09 +0000 (10:38 +0300)
commit8223b2f89ca63e203dcb54148e30d94979f17b0b
treee09fa1fbb30d07f3b98a67d3a91fd04264152440
parentbd6bce004d78b867ba0c6d3712f1c5b50398af9a
usb: gadget: udc: renesas_usb3: fix double phy_put()

This patch fixes an issue that this driver cause double phy_put()
calling. This driver must not call phy_put() in the remove because
the driver calls devm_phy_get() in the probe.

Fixes: 279d4bc64060 ("usb: gadget: udc: renesas_usb3: add support for generic phy")
Cc: <stable@vger.kernel.org> # v4.15+
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/renesas_usb3.c