From patchwork Wed Nov 18 00:05:24 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 60861 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nAI05DHF027977 for ; Wed, 18 Nov 2009 00:05:27 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752289AbZKRAFU (ORCPT ); Tue, 17 Nov 2009 19:05:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752771AbZKRAFT (ORCPT ); Tue, 17 Nov 2009 19:05:19 -0500 Received: from g1t0029.austin.hp.com ([15.216.28.36]:1163 "EHLO g1t0029.austin.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752289AbZKRAFS (ORCPT ); Tue, 17 Nov 2009 19:05:18 -0500 Received: from g1t0039.austin.hp.com (g1t0039.austin.hp.com [16.236.32.45]) by g1t0029.austin.hp.com (Postfix) with ESMTP id E6CA4382E8; Wed, 18 Nov 2009 00:05:24 +0000 (UTC) Received: from ldl (linux.corp.hp.com [15.11.146.101]) by g1t0039.austin.hp.com (Postfix) with ESMTP id CD29D34390; Wed, 18 Nov 2009 00:05:24 +0000 (UTC) Received: from localhost (ldl.fc.hp.com [127.0.0.1]) by ldl (Postfix) with ESMTP id B34CACF000F; Tue, 17 Nov 2009 17:05:24 -0700 (MST) Received: from ldl ([127.0.0.1]) by localhost (ldl.fc.hp.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RgmT9BAUUBvY; Tue, 17 Nov 2009 17:05:24 -0700 (MST) Received: from eh.fc.hp.com (eh.fc.hp.com [15.11.146.105]) by ldl (Postfix) with ESMTP id 9D4A3CF0007; Tue, 17 Nov 2009 17:05:24 -0700 (MST) Received: from bob.kio (localhost [127.0.0.1]) by eh.fc.hp.com (Postfix) with ESMTP id 811462613F; Tue, 17 Nov 2009 17:05:24 -0700 (MST) Subject: [PATCH v1 3/5] ipmi: remove unused PCI probe code To: Zhao Yakui From: Bjorn Helgaas Cc: Corey Minyard , Bela Lubkin , linux-acpi@vger.kernel.org, Myron Stowe , openipmi-developer@lists.sourceforge.net, Len Brown Date: Tue, 17 Nov 2009 17:05:24 -0700 Message-ID: <20091118000524.14214.41587.stgit@bob.kio> In-Reply-To: <20091118000427.14214.14043.stgit@bob.kio> References: <20091118000427.14214.14043.stgit@bob.kio> User-Agent: StGit/0.15 MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c index d2e6980..aaf6ead 100644 --- a/drivers/char/ipmi/ipmi_si_intf.c +++ b/drivers/char/ipmi/ipmi_si_intf.c @@ -2202,7 +2202,6 @@ static int __devinit ipmi_pci_probe(struct pci_dev *pdev, int rv; int class_type = pdev->class & PCI_ERMC_CLASSCODE_TYPE_MASK; struct smi_info *info; - int first_reg_offset = 0; info = kzalloc(sizeof(*info), GFP_KERNEL); if (!info) @@ -2241,9 +2240,6 @@ static int __devinit ipmi_pci_probe(struct pci_dev *pdev, info->addr_source_cleanup = ipmi_pci_cleanup; info->addr_source_data = pdev; - if (pdev->subsystem_vendor == PCI_HP_VENDOR_ID) - first_reg_offset = 1; - if (pci_resource_flags(pdev, 0) & IORESOURCE_IO) { info->io_setup = port_setup; info->io.addr_type = IPMI_IO_ADDR_SPACE;