[ARM] tegra: nvrm: duplicate all handles on AVP pin
authorGary King <gking@nvidia.com>
Tue, 12 Oct 2010 22:39:21 +0000 (15:39 -0700)
committerRebecca Schultz Zavin <rebecca@android.com>
Wed, 13 Oct 2010 01:55:02 +0000 (18:55 -0700)
commitf82e060864b69a9537c205a3d835314bad212627
tree1733d7f01bcce332a7d535429e14772e0059a575
parentc53cf3c0727c82aeacf4d08fca40a94b7557c811
[ARM] tegra: nvrm: duplicate all handles on AVP pin

one of the AVP modules used by camera apparently pins a handle
without duplicating the handle onto the AVP first. this is
an incorrect usage of the API, but was only flagged as an error
with the new nvmap implementation.

work-around this for now by performing an explicit duplicate on
pin, and an explicit free on unpin.

Change-Id: I49777fdd1009e564ac326fda00b96275d0ae5c19
Signed-off-by: Gary King <gking@nvidia.com>
arch/arm/mach-tegra/nv/nvrm/core/ap15/ap15rm_avp_service.c