From patchwork Sun Mar 29 12:40:13 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janne Grunau X-Patchwork-Id: 609 Return-path: Envelope-to: mchehab@infradead.org Delivery-date: Sun, 29 Mar 2009 12:40:35 +0000 Received: from vger.kernel.org ([209.132.176.167]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1LnuJX-0001Um-36; Sun, 29 Mar 2009 12:40:35 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753317AbZC2Mkf (ORCPT + 1 other); Sun, 29 Mar 2009 08:40:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753430AbZC2Mkf (ORCPT ); Sun, 29 Mar 2009 08:40:35 -0400 Received: from tichy.grunau.be ([85.131.189.73]:52206 "EHLO tichy.grunau.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753317AbZC2Mke (ORCPT ); Sun, 29 Mar 2009 08:40:34 -0400 Received: from localhost (unknown [78.52.195.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tichy.grunau.be (Postfix) with ESMTPSA id 98C4990002; Sun, 29 Mar 2009 14:40:11 +0200 (CEST) Date: Sun, 29 Mar 2009 14:40:13 +0200 From: Janne Grunau To: linux-media@vger.kernel.org Cc: Srinivasa Deevi Subject: [PATCH 2 of 6] cx321xx: use usb_interface.dev for v4l2_device_register Message-ID: <20090329124013.GC637@aniel> References: MIME-Version: 1.0 Content-Disposition: inline; filename="v4l2_device_usb_interface-2.patch" In-Reply-To: User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org # HG changeset patch # User Janne Grunau # Date 1238190165 -3600 # Node ID edca57a287041646c86b404852ef9abf0ecd6c72 # Parent 602a8fff1ba466ec4fb4816d0fb0725c8650c311 cx321xx: use usb_interface.dev for v4l2_device_register From: Janne Grunau removes the explicitly set v4l2_device.name Priority: normal Signed-off-by: Janne Grunau diff -r 602a8fff1ba4 -r edca57a28704 linux/drivers/media/video/cx231xx/cx231xx-cards.c --- a/linux/drivers/media/video/cx231xx/cx231xx-cards.c Fri Mar 27 22:34:06 2009 +0100 +++ b/linux/drivers/media/video/cx231xx/cx231xx-cards.c Fri Mar 27 22:42:45 2009 +0100 @@ -683,9 +683,7 @@ */ /* Create v4l2 device */ - snprintf(dev->v4l2_dev.name, sizeof(dev->v4l2_dev.name), - "%s-%03d", "cx231xx", nr); - retval = v4l2_device_register(&udev->dev, &dev->v4l2_dev); + retval = v4l2_device_register(&interface->dev, &dev->v4l2_dev); if (retval) { cx231xx_errdev("v4l2_device_register failed\n"); cx231xx_devused &= ~(1 << nr); -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html