power: reset: ltc2952: prefer devm_kzalloc over kzalloc
authorFrans Klaver <frans.klaver@xsens.com>
Wed, 14 Jan 2015 08:15:34 +0000 (09:15 +0100)
committerSebastian Reichel <sre@kernel.org>
Tue, 20 Jan 2015 12:58:27 +0000 (13:58 +0100)
commit0a5c6a2276fe06a3ebb6a9ed26c0b8007074958e
tree7864e40f3c10ef4012c03229b767637831c65a4d
parent0160817d10a97900b9ee08a8b8b2f5a148e2be0f
power: reset: ltc2952: prefer devm_kzalloc over kzalloc

Make use of the fact that the allocated resources can be automatically
deallocated. This reduces cleanup code and chance of leaks.

Signed-off-by: Frans Klaver <frans.klaver@xsens.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/reset/ltc2952-poweroff.c