From patchwork Fri Dec 18 07:57:00 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhao, Yakui" X-Patchwork-Id: 68628 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id nBI7wuLJ031163 for ; Fri, 18 Dec 2009 07:58:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751840AbZLRH65 (ORCPT ); Fri, 18 Dec 2009 02:58:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751557AbZLRH65 (ORCPT ); Fri, 18 Dec 2009 02:58:57 -0500 Received: from mga01.intel.com ([192.55.52.88]:62022 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751186AbZLRH64 (ORCPT ); Fri, 18 Dec 2009 02:58:56 -0500 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 17 Dec 2009 23:52:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.47,415,1257148800"; d="scan'208";a="757367820" Received: from yakui_zhao.sh.intel.com (HELO localhost.localdomain) ([10.239.13.171]) by fmsmga001.fm.intel.com with ESMTP; 17 Dec 2009 23:58:50 -0800 From: yakui.zhao@intel.com To: lenb@kernel.org Cc: linux-acpi@vger.kernel.org, bjorn.helgaas@hp.com, minyard@acm.org, openipmi-developer@lists.sourceforge.net, Zhao Yakui Subject: [PATCH v4 1/2] IPMI/ACPI: use ACPI detection mechanism firstly to detect IPMI system interface Date: Fri, 18 Dec 2009 15:57:00 +0800 Message-Id: <1261123021-22836-2-git-send-email-yakui.zhao@intel.com> X-Mailer: git-send-email 1.5.4.5 In-Reply-To: <1261123021-22836-1-git-send-email-yakui.zhao@intel.com> References: <1261123021-22836-1-git-send-email-yakui.zhao@intel.com> 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 679cd08..99fecd2 100644 --- a/drivers/char/ipmi/ipmi_si_intf.c +++ b/drivers/char/ipmi/ipmi_si_intf.c @@ -3195,6 +3195,10 @@ static __devinit int init_ipmi_si(void) printk(KERN_INFO "IPMI System Interface driver.\n"); +#ifdef CONFIG_PNP + pnp_register_driver(&ipmi_pnp_driver); +#endif + hardcode_find_bmc(); #ifdef CONFIG_DMI @@ -3204,9 +3208,6 @@ static __devinit int init_ipmi_si(void) #ifdef CONFIG_ACPI spmi_find_bmc(); #endif -#ifdef CONFIG_PNP - pnp_register_driver(&ipmi_pnp_driver); -#endif #ifdef CONFIG_PCI rv = pci_register_driver(&ipmi_pci_driver);