[media] omap3isp: Don't increment node entity use count when poweron fails
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 1 Apr 2011 12:12:54 +0000 (09:12 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 19 Apr 2011 14:28:42 +0000 (11:28 -0300)
commite2241531a5d015b55cdddd488f6f3477c785f34e
tree7218ab58ff538e5958d0cc6e9e069a91f0321c3e
parentc09af044db91bf0f8ca5073f5863c7280de39cc1
[media] omap3isp: Don't increment node entity use count when poweron fails

When open a device node, all entities part of the same pipeline are
powered on. If one of the entities fails to be powered on, the open
operations fails. In that case the device node entity use count must not
be incremented.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/omap3isp/isp.c