From patchwork Mon Jan 10 18:03:08 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Verkuil X-Patchwork-Id: 469341 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0AI3TQ3008891 for ; Mon, 10 Jan 2011 18:03:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754328Ab1AJSD2 (ORCPT ); Mon, 10 Jan 2011 13:03:28 -0500 Received: from smtp-vbr18.xs4all.nl ([194.109.24.38]:4301 "EHLO smtp-vbr18.xs4all.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754292Ab1AJSD1 (ORCPT ); Mon, 10 Jan 2011 13:03:27 -0500 Received: from tschai.localnet (43.80-203-71.nextgentel.com [80.203.71.43]) (authenticated bits=0) by smtp-vbr18.xs4all.nl (8.13.8/8.13.8) with ESMTP id p0AI391b075147 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 10 Jan 2011 19:03:22 +0100 (CET) (envelope-from hverkuil@xs4all.nl) From: Hans Verkuil To: "Daniel Drake" Subject: Re: [RFCv2 PATCH 0/5] Use control framework in cafe_ccic and s_config removal Date: Mon, 10 Jan 2011 19:03:08 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.37-tschai; KDE/4.4.5; x86_64; ; ) Cc: "Jonathan Corbet" , linux-media@vger.kernel.org, "Laurent Pinchart" References: <1294484508-14820-1-git-send-email-hverkuil@xs4all.nl> <7be530a8d14997437511b57e7504785a.squirrel@webmail.xs4all.nl> In-Reply-To: <7be530a8d14997437511b57e7504785a.squirrel@webmail.xs4all.nl> MIME-Version: 1.0 Message-Id: <201101101903.08675.hverkuil@xs4all.nl> X-Virus-Scanned: by XS4ALL Virus Scanner Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 10 Jan 2011 18:03:30 +0000 (UTC) diff --git a/drivers/media/video/v4l2-device.c b/drivers/media/video/v4l2-device.c index 7fe6f92..83a2e69 100644 --- a/drivers/media/video/v4l2-device.c +++ b/drivers/media/video/v4l2-device.c @@ -100,6 +100,7 @@ void v4l2_device_unregister(struct v4l2_device *v4l2_dev) is a platform bus, then it is never deleted. */ if (client) i2c_unregister_device(client); + continue; } #endif #if defined(CONFIG_SPI) @@ -108,6 +109,7 @@ void v4l2_device_unregister(struct v4l2_device *v4l2_dev) if (spi) spi_unregister_device(spi); + continue; } #endif }