From patchwork Thu Jun 16 19:06:44 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hiremath, Vaibhav" X-Patchwork-Id: 7270 Return-path: Envelope-to: mchehab@pedra Delivery-date: Thu, 16 Jun 2011 16:07:18 -0300 Received: from mchehab by pedra with local (Exim 4.72) (envelope-from ) id 1QXHuQ-0003pI-9m for mchehab@pedra; Thu, 16 Jun 2011 16:07:18 -0300 Received: from casper.infradead.org [85.118.1.10] by pedra with IMAP (fetchmail-6.3.17) for (single-drop); Thu, 16 Jun 2011 16:07:18 -0300 (BRT) Received: from vger.kernel.org ([209.132.180.67]) by casper.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QXHu7-0001FL-BI; Thu, 16 Jun 2011 19:06:59 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755550Ab1FPTG4 (ORCPT + 1 other); Thu, 16 Jun 2011 15:06:56 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:33961 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753139Ab1FPTG4 (ORCPT ); Thu, 16 Jun 2011 15:06:56 -0400 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id p5GJ6pNq018065 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 16 Jun 2011 14:06:54 -0500 Received: from dbde71.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id p5GJ6nOI016063; Fri, 17 Jun 2011 00:36:50 +0530 (IST) Received: from dbdp31.itg.ti.com (172.24.170.98) by DBDE71.ent.ti.com (172.24.170.149) with Microsoft SMTP Server id 8.3.106.1; Fri, 17 Jun 2011 00:36:49 +0530 Received: from localhost.localdomain (dbdp20.itg.ti.com [172.24.170.38]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id p5GJ6ivv028306; Fri, 17 Jun 2011 00:36:46 +0530 (IST) From: To: CC: , , Vaibhav Hiremath Subject: [PATCH] OMAP_VOUT: Change hardcoded device node number to -1 Date: Fri, 17 Jun 2011 00:36:44 +0530 Message-ID: <1308251204-15633-1-git-send-email-hvaibhav@ti.com> X-Mailer: git-send-email 1.6.2.4 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Sender: From: Vaibhav Hiremath With addition of media-controller framework, now we have various device nodes (/dev/videoX) getting created, so hardcoding minor number in video_register_device() is not recommended. So let V4L2 framework choose free minor number for the device. Signed-off-by: Vaibhav Hiremath --- drivers/media/video/omap/omap_vout.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/omap/omap_vout.c b/drivers/media/video/omap/omap_vout.c index 0bc776c..3bc909a 100644 --- a/drivers/media/video/omap/omap_vout.c +++ b/drivers/media/video/omap/omap_vout.c @@ -1993,7 +1993,7 @@ static int __init omap_vout_create_video_devices(struct platform_device *pdev) /* Register the Video device with V4L2 */ vfd = vout->vfd; - if (video_register_device(vfd, VFL_TYPE_GRABBER, k + 1) < 0) { + if (video_register_device(vfd, VFL_TYPE_GRABBER, -1) < 0) { dev_err(&pdev->dev, ": Could not register " "Video for Linux device\n"); vfd->minor = -1;