From patchwork Mon Sep 22 21:27:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Daniel_Gl=C3=B6ckner?= X-Patchwork-Id: 4950481 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8D7459F32F for ; Mon, 22 Sep 2014 21:28:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4A6E820253 for ; Mon, 22 Sep 2014 21:28:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B98782024F for ; Mon, 22 Sep 2014 21:28:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754631AbaIVV2M (ORCPT ); Mon, 22 Sep 2014 17:28:12 -0400 Received: from mout.gmx.net ([212.227.17.22]:51581 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753128AbaIVV2L (ORCPT ); Mon, 22 Sep 2014 17:28:11 -0400 Received: from minime.bse ([24.134.147.13]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0Lb90f-1XyxW436uP-00khzR for ; Mon, 22 Sep 2014 23:28:09 +0200 Received: (qmail 9113 invoked by uid 500); 22 Sep 2014 21:28:08 -0000 From: =?UTF-8?q?Daniel=20Gl=C3=B6ckner?= To: Hans Verkuil Cc: Thomas Voegtle , linux-media@vger.kernel.org, =?UTF-8?q?Daniel=20Gl=C3=B6ckner?= Subject: [PATCH] saa7146: generate device name early Date: Mon, 22 Sep 2014 23:27:41 +0200 Message-Id: <1411421261-9076-1-git-send-email-daniel-gl@gmx.net> X-Mailer: git-send-email 1.8.3.4 In-Reply-To: References: MIME-Version: 1.0 X-Provags-ID: V03:K0:J+Q6qin9qkkpMla7cp+VRL7hPFKYbMILEJv18yreZ1PGxEKEGIf uP6yXiBf6ouGGdjiRfQsTcynNnCQk+ZfvmyOQZagSmY7iMnRFKD4a8NiCMRoPAD97Z1MM/s jK/RpII5Zn3d7/ntOkT05SaHVO0EJ25d05dG4XDwsp18HvrFdajEeO7KmRSdeQQR6t0sWOw 2YiLQ7JqG5iN2nQGOf0Vw== X-UI-Out-Filterresults: notjunk:1; Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP It is needed when requesting the irq. Signed-off-by: Daniel Glöckner --- drivers/media/common/saa7146/saa7146_core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/common/saa7146/saa7146_core.c b/drivers/media/common/saa7146/saa7146_core.c index 97afee6..4418119 100644 --- a/drivers/media/common/saa7146/saa7146_core.c +++ b/drivers/media/common/saa7146/saa7146_core.c @@ -364,6 +364,9 @@ static int saa7146_init_one(struct pci_dev *pci, const struct pci_device_id *ent goto out; } + /* create a nice device name */ + sprintf(dev->name, "saa7146 (%d)", saa7146_num); + DEB_EE("pci:%p\n", pci); err = pci_enable_device(pci); @@ -438,9 +441,6 @@ static int saa7146_init_one(struct pci_dev *pci, const struct pci_device_id *ent /* the rest + print status message */ - /* create a nice device name */ - sprintf(dev->name, "saa7146 (%d)", saa7146_num); - pr_info("found saa7146 @ mem %p (revision %d, irq %d) (0x%04x,0x%04x)\n", dev->mem, dev->revision, pci->irq, pci->subsystem_vendor, pci->subsystem_device);