Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752796Ab3FXHOz (ORCPT ); Mon, 24 Jun 2013 03:14:55 -0400 Received: from smtp-vbr5.xs4all.nl ([194.109.24.25]:4123 "EHLO smtp-vbr5.xs4all.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752310Ab3FXHOx (ORCPT ); Mon, 24 Jun 2013 03:14:53 -0400 From: Hans Verkuil To: Prabhakar Lad Subject: Re: [PATCH v2 1/2] media: i2c: tvp7002: add support for asynchronous probing Date: Mon, 24 Jun 2013 09:14:22 +0200 User-Agent: KMail/1.13.7 (Linux/3.10.0-rc6-tschai; KDE/4.9.5; x86_64; ; ) Cc: Mauro Carvalho Chehab , LMML , Hans Verkuil , Laurent Pinchart , DLOS , LKML , Guennadi Liakhovetski , Sylwester Nawrocki , Sakari Ailus References: <1371923055-29623-1-git-send-email-prabhakar.csengg@gmail.com> <1371923055-29623-2-git-send-email-prabhakar.csengg@gmail.com> In-Reply-To: <1371923055-29623-2-git-send-email-prabhakar.csengg@gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201306240914.22490.hverkuil@xs4all.nl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2126 Lines: 62 On Sat June 22 2013 19:44:14 Prabhakar Lad wrote: > From: "Lad, Prabhakar" > > Both synchronous and asynchronous tvp7002 subdevice probing > is supported by this patch. Can I merge this patch without patch 2/2? Or should I wait with both until the video sync properties have been approved? Hans > > Signed-off-by: Lad, Prabhakar > Cc: Hans Verkuil > Cc: Laurent Pinchart > Cc: Mauro Carvalho Chehab > Cc: Guennadi Liakhovetski > Cc: Sylwester Nawrocki > Cc: Sakari Ailus > Cc: linux-kernel@vger.kernel.org > Cc: davinci-linux-open-source@linux.davincidsp.com > --- > drivers/media/i2c/tvp7002.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/media/i2c/tvp7002.c b/drivers/media/i2c/tvp7002.c > index 36ad565..b577548 100644 > --- a/drivers/media/i2c/tvp7002.c > +++ b/drivers/media/i2c/tvp7002.c > @@ -31,6 +31,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -1040,6 +1041,10 @@ static int tvp7002_probe(struct i2c_client *c, const struct i2c_device_id *id) > } > v4l2_ctrl_handler_setup(&device->hdl); > > + error = v4l2_async_register_subdev(&device->sd); > + if (error) > + goto error; > + > return 0; > > error: > @@ -1064,6 +1069,7 @@ static int tvp7002_remove(struct i2c_client *c) > > v4l2_dbg(1, debug, sd, "Removing tvp7002 adapter" > "on address 0x%x\n", c->addr); > + v4l2_async_unregister_subdev(&device->sd); > #if defined(CONFIG_MEDIA_CONTROLLER) > media_entity_cleanup(&device->sd.entity); > #endif > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/