v4l: rcar-fcp: Don't get/put module reference
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 16 May 2017 23:20:03 +0000 (02:20 +0300)
committerKieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Fri, 9 Jun 2017 11:25:36 +0000 (12:25 +0100)
commit8c71a1a318385ba2354fa7e8adf3d42678edd766
treeea2b4494459954d87a5e6ed2ad01fdc649d763fd
parentd503a43ac06ac0ec66244d565dfc2c54fdb2425c
v4l: rcar-fcp: Don't get/put module reference

Direct callers of the FCP API hold a reference to the FCP module due to
module linkage, there's no need to take another one manually. Take a
reference to the device instead to ensure that it won't disappear behind
the caller's back.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Acked-by: Mauro Cavalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/rcar-fcp.c