[PATCH 1/1] media: platform: ti-vpe: call of_node_put on non-null pointer

2016-07-15 Thread Peter Chen
It should call of_node_put on non-null poiner.

Cc: linux-media@vger.kernel.org
Cc: Mauro Carvalho Chehab <mche...@kernel.org>
Cc: Benoit Parrot <bpar...@ti.com>
Signed-off-by: Peter Chen <peter.c...@nxp.com>
---
 drivers/media/platform/ti-vpe/cal.c | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/media/platform/ti-vpe/cal.c 
b/drivers/media/platform/ti-vpe/cal.c
index 82001e6..00c3e97 100644
--- a/drivers/media/platform/ti-vpe/cal.c
+++ b/drivers/media/platform/ti-vpe/cal.c
@@ -1761,13 +1761,13 @@ static int of_cal_create_instance(struct cal_ctx *ctx, 
int inst)
}
 
 cleanup_exit:
-   if (!remote_ep)
+   if (remote_ep)
of_node_put(remote_ep);
-   if (!sensor_node)
+   if (sensor_node)
of_node_put(sensor_node);
-   if (!ep_node)
+   if (ep_node)
of_node_put(ep_node);
-   if (!port)
+   if (port)
of_node_put(port);
 
return ret;
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Using UVC webcam gadget with a real v4l2 device

2012-04-23 Thread Peter Chen
On Mon, Apr 23, 2012 at 2:24 AM, Bhupesh SHARMA bhupesh.sha...@st.com wrote:
 Hi Laurent,

 I have been doing some experimentation with the UVC webcam gadget along with 
 the UVC user-space
 application which you have written.

I have tried UVC webcam gadget at Freescale i.mx platform,
unfortunately,  It can't work
properly with my demo application. Would you tell me where I can get
Laurent's user-space
application? Thanks.

-- 
BR,
Peter Chen
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


where to find the old hg repo. ?

2011-07-08 Thread Peter Chen
Dear all,
I need the old revision of the mxl500x-af9015 to driver the USB device
07ca:815c from AVerMedia.
Original path is:  http://linuxtv.org/hg/~anttip/af9015-mxl500x

the wanted revision is af9015-mxl500x-1487a7dcf22a or other
newer/latest revision.

One of my friend in his company has successfully use the driver to watch TV,
but he cannot send the source to me according company policy.

Is it not integrated into mainline kernel?


Best Regards,
cwz0522
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html