mfd: Do not leak init_data in tps65912_device_init()
authorJesper Juhl <jj@chaosbits.net>
Tue, 20 Sep 2011 21:13:06 +0000 (14:13 -0700)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 24 Oct 2011 12:09:15 +0000 (14:09 +0200)
We neglect to free init_data on successful exit.  I also moved two
assignments to just before they are needed.  This avoids doing them in
case we hit an earlier error exit from the function.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Cc: Margarita Olaya Cabrera <magi@slimlogic.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

No differences found