From patchwork Tue Aug 3 15:44:13 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kulikov Vasiliy X-Patchwork-Id: 116813 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o73FjOcK020887 for ; Tue, 3 Aug 2010 15:45:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932204Ab0HCPoV (ORCPT ); Tue, 3 Aug 2010 11:44:21 -0400 Received: from mail-ew0-f46.google.com ([209.85.215.46]:51653 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932169Ab0HCPoR (ORCPT ); Tue, 3 Aug 2010 11:44:17 -0400 Received: by ewy23 with SMTP id 23so1691381ewy.19 for ; Tue, 03 Aug 2010 08:44:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=HtaghHFjM5pLztWVVZzWAFY9FXNuAt9gjpp4neEfnow=; b=VRhdlWtUBXnZR0huW6AZnigINp0ADnOWpPe+AFoJJPa9yj7LIKxQy3rXMR9O09J52R m9RRugwVyorXxmE8abj5PGTg/uQjtoolGwwkghYNuy5gzufhoJ70SYXq35Nbj8PH9iha DNRHaL6pKRZ8FTnvA4TSmP2SpTvy8ix7LIOLY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=npk5BPnICUD8LjLKv+DTGopva9TRj6naIhTd+W43eTftNnXZWYDRJN79YZEUEPvzyk HSw5oL9mOotCMhXHy6P5LapyktPDyoISKwi6fAg0PBUZTUVzjj3zqg1p9isXgU+W15Ra du5ubpIp0yyc9HCuzg32w+QVoMTpJ4zgbDadI= Received: by 10.213.19.67 with SMTP id z3mr1034796eba.87.1280850256441; Tue, 03 Aug 2010 08:44:16 -0700 (PDT) Received: from localhost (ppp91-78-208-178.pppoe.mtu-net.ru [91.78.208.178]) by mx.google.com with ESMTPS id v8sm10984401eeh.2.2010.08.03.08.44.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 03 Aug 2010 08:44:16 -0700 (PDT) From: Kulikov Vasiliy To: kernel-janitors@vger.kernel.org Cc: Kyle McMartin , Helge Deller , "James E.J. Bottomley" , Frans Pop , Thomas Gleixner , linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/11] parisc: superio: do not use PCI resources before pci_enable_device() Date: Tue, 3 Aug 2010 19:44:13 +0400 Message-Id: <1280850253-6128-1-git-send-email-segooon@gmail.com> X-Mailer: git-send-email 1.7.0.4 Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 03 Aug 2010 15:45:25 +0000 (UTC) diff --git a/drivers/parisc/superio.c b/drivers/parisc/superio.c index f7806d8..c8a36a2 100644 --- a/drivers/parisc/superio.c +++ b/drivers/parisc/superio.c @@ -169,8 +169,6 @@ superio_init(struct pci_dev *pcidev) /* ...then properly fixup the USB to point at suckyio PIC */ sio->usb_pdev->irq = superio_fixup_irq(sio->usb_pdev); - printk(KERN_INFO PFX "Found NS87560 Legacy I/O device at %s (IRQ %i)\n", - pci_name(pdev), pdev->irq); pci_read_config_dword (pdev, SIO_SP1BAR, &sio->sp1_base); sio->sp1_base &= ~1; @@ -204,6 +202,9 @@ superio_init(struct pci_dev *pcidev) ret = pci_enable_device(pdev); BUG_ON(ret < 0); /* not too much we can do about this... */ + printk(KERN_INFO PFX "Found NS87560 Legacy I/O device at %s (IRQ %i)\n", + pci_name(pdev), pdev->irq); + /* * Next project is programming the onboard interrupt controllers. * PDC hasn't done this for us, since it's using polled I/O.