power: reset: ltc2952: prefer devm_request_irq over request_irq
authorFrans Klaver <frans.klaver@xsens.com>
Wed, 14 Jan 2015 08:15:35 +0000 (09:15 +0100)
committerSebastian Reichel <sre@kernel.org>
Tue, 20 Jan 2015 12:58:28 +0000 (13:58 +0100)
commit07d08237d3ff08c6a53c6e8496bd255176e1d68f
tree4316178a8ee89d9451957f905eb2f4c45b6ed7fe
parent0a5c6a2276fe06a3ebb6a9ed26c0b8007074958e
power: reset: ltc2952: prefer devm_request_irq over request_irq

Make use of the fact that we allocated resources can be automatically
deallocated. This reduces cleanup code and chance of errors. It also
removes the need for the virq member of the ltc2952_poweroff_data
struct.

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