OSDN Git Service

ARM: OMAP2+: omap-usb-host: Fix memory leaks
authorRoger Quadros <rogerq@ti.com>
Fri, 24 May 2013 13:06:58 +0000 (16:06 +0300)
committerTony Lindgren <tony@atomide.com>
Wed, 12 Jun 2013 17:04:10 +0000 (10:04 -0700)
commite41a5f88b374f7b1d87a72740d186be20cae4aa8
treeab78d492ad43bc2d2fa4da344c1301edc9e5abf6
parent82702ea11ddfe0e43382e1fa5b66d807d8114916
ARM: OMAP2+: omap-usb-host: Fix memory leaks

Fix memory leaks in the error path.
Also, use platform_device_register_full() to allocate
the platform devices and set platform data.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/usb-host.c