]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commit
mfd: Use devm managed resources for tps6586x
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 18 Jul 2012 06:20:45 +0000 (11:50 +0530)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 24 Jul 2012 22:36:53 +0000 (00:36 +0200)
commitb6719412dc28458f3c142a27bf3e0d2ab3ce0573
tree877edd66855d972926cd9b761c4937c53e741528
parent96c905f408d4ed16b7b87d7d2b16e8d8d02f0cc8
mfd: Use devm managed resources for tps6586x

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

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/tps6586x.c