summaryrefslogtreecommitdiffstats
path: root/drivers/phy/phy-omap-usb2.c
diff options
context:
space:
mode:
authorRoger Quadros <rogerq@ti.com>2014-07-10 08:25:02 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-12 03:23:49 +0200
commite73b49f1c4e75c44d62585cc3e5b9c7894b61c32 (patch)
tree95b3336a3ec82f1b434b38747179e69b54cccbd6 /drivers/phy/phy-omap-usb2.c
parentdrivers: phy: phy-samsung-usb2.c: Add missing MODULE_DEVICE_TABLE (diff)
downloadlinux-e73b49f1c4e75c44d62585cc3e5b9c7894b61c32.tar.xz
linux-e73b49f1c4e75c44d62585cc3e5b9c7894b61c32.zip
phy: core: Fix error path in phy_create()
Prevent resources from being freed twice in case device_add() call fails within phy_create(). Also use ida_simple_remove() instead of ida_remove() as we had used ida_simple_get() to allocate the ida. Cc: 3.13+ <stable@vger.kernel.org> # 3.13+ Signed-off-by: Roger Quadros <rogerq@ti.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions