OMAP: hsmmc: fix memory leak
commita6c7fdd29350a74ba5f76809436de9c3d6763009
authorAaro Koskinen <aaro.koskinen@nokia.com>
Thu, 4 Feb 2010 11:06:59 +0000 (4 13:06 +0200)
committerTony Lindgren <tony@atomide.com>
Wed, 10 Feb 2010 17:20:33 +0000 (10 09:20 -0800)
tree0bd269342ae913bfc760453c57462558aa74e10d
parent80e1e823989ec44d8e35bdfddadbddcffec90424
OMAP: hsmmc: fix memory leak

The platform data allocated with kmalloc() will become unreachable once
the init is complete, so it should be freed. The problem was discovered
by kmemleak.

Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Acked-by: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/mmc-twl4030.c