From patchwork Tue Feb 15 09:20:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tejun Heo X-Patchwork-Id: 558301 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 p1F9Kief016538 for ; Tue, 15 Feb 2011 09:20:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754249Ab1BOJUV (ORCPT ); Tue, 15 Feb 2011 04:20:21 -0500 Received: from mail-fx0-f46.google.com ([209.85.161.46]:50848 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753974Ab1BOJUS (ORCPT ); Tue, 15 Feb 2011 04:20:18 -0500 Received: by fxm20 with SMTP id 20so6153681fxm.19 for ; Tue, 15 Feb 2011 01:20:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=2kXJcbRfxRWrxy5cEbnAJOBbEW52jwVXOOFaNbsVFZA=; b=p7CglR6cusKdFybyeypBWFtQH6Q435/1W2+p5LxOpmC9fExi0XvMlt+tw+jKZPPFoI FxHwE5cHyDRNfOmecgbLdaGCJscgFG99ap+nScgFEvd5TxIK6mXJo/8p8GNjRY+WDJQ0 iBE63gKoFaxOAiHnHsOqy0pGsP58+6skBHgZg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=F7g6ZxQ2Qss6HICbcP6InaNYVfAcQHSexfIanOA8IHorhKJC0QTBOK8KstWtQW8cTN NK1PySdJicfHx6xHw0r6KwZEXTsvEXYItUOPxS8vt5k1h8ALHXJepteGal5aCaz6KxxZ PINUynJODmcivg4453Xn+tY4ezfiji6K7OprM= Received: by 10.223.87.1 with SMTP id u1mr5840319fal.112.1297761617287; Tue, 15 Feb 2011 01:20:17 -0800 (PST) Received: from htj.dyndns.org ([130.75.117.88]) by mx.google.com with ESMTPS id n2sm1522827fam.4.2011.02.15.01.20.14 (version=SSLv3 cipher=OTHER); Tue, 15 Feb 2011 01:20:14 -0800 (PST) Date: Tue, 15 Feb 2011 10:20:12 +0100 From: Tejun Heo To: Andy Walls Cc: Dmitry Torokhov , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, stoth@kernellabs.com, Mauro Carvalho Chehab Subject: [PATCH] cx23885: restore flushes of cx23885_dev work items Message-ID: <20110215092012.GE3160@htj.dyndns.org> References: <1297647322.19186.61.camel@localhost> <20110214043355.GA28090@core.coreip.homeip.net> <20110214110339.GC18742@htj.dyndns.org> <1297731276.2394.19.camel@localhost> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1297731276.2394.19.camel@localhost> User-Agent: Mutt/1.5.20 (2009-06-14) 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]); Tue, 15 Feb 2011 09:20:45 +0000 (UTC) diff --git a/drivers/media/video/cx23885/cx23885-input.c b/drivers/media/video/cx23885/cx23885-input.c index 199b996..e27cedb 100644 --- a/drivers/media/video/cx23885/cx23885-input.c +++ b/drivers/media/video/cx23885/cx23885-input.c @@ -229,6 +229,9 @@ static void cx23885_input_ir_stop(struct cx23885_dev *dev) v4l2_subdev_call(dev->sd_ir, ir, rx_s_parameters, ¶ms); v4l2_subdev_call(dev->sd_ir, ir, rx_g_parameters, ¶ms); } + flush_work_sync(&dev->cx25840_work); + flush_work_sync(&dev->ir_rx_work); + flush_work_sync(&dev->ir_tx_work); } static void cx23885_input_ir_close(struct rc_dev *rc)