mfd: tps80031: use devm managed resources
authorLaxman Dewangan <ldewangan@nvidia.com>
Thu, 19 Jul 2012 08:35:52 +0000 (13:35 +0530)
committerSimone Willett <swillett@nvidia.com>
Mon, 23 Jul 2012 17:40:12 +0000 (10:40 -0700)
commite6a836a6312c24e98ccb0fe059a569470b9de32d
treec3a4df9e944fcde1761ebf5b6916a3a0926c580b
parent483d3d78b86237c86afc915615130021e5468162
mfd: tps80031: use devm managed resources

Allocate memory for device state using devm_kzalloc()
to simplify accounting and letting the kernel do the
garbage-collection.

Change-Id: I8dcde205556c43f4fdfe5e335507df206f204177
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/117331
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit
drivers/mfd/tps80031.c