[media] sir_ir: use dev managed resources
authorSean Young <sean@mess.org>
Wed, 17 May 2017 17:32:51 +0000 (14:32 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Jun 2017 12:15:00 +0000 (09:15 -0300)
commitb462e1b20dc39f4af05bcbf850e574c381b17038
tree3c8eb87876f56634b9b827ddd7956c3ba2d96628
parent1beb5a7d1b17f187491599410709fd0544ea1c16
[media] sir_ir: use dev managed resources

Several error paths do not free up resources. This simplifies the code
and fixes this.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/sir_ir.c