From patchwork Fri Nov 23 11:35:59 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Hunter X-Patchwork-Id: 1795081 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id CAE99DF5B1 for ; Fri, 23 Nov 2012 11:34:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754207Ab2KWLde (ORCPT ); Fri, 23 Nov 2012 06:33:34 -0500 Received: from mga01.intel.com ([192.55.52.88]:1596 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751134Ab2KWLdd (ORCPT ); Fri, 23 Nov 2012 06:33:33 -0500 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 23 Nov 2012 03:33:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.83,307,1352102400"; d="scan'208";a="253225933" Received: from ahunter-desktop.fi.intel.com ([10.237.72.194]) by fmsmga002.fm.intel.com with ESMTP; 23 Nov 2012 03:33:31 -0800 From: Adrian Hunter To: "Rafael J. Wysocki" Cc: "Rafael J. Wysocki" , Chris Ball , mika.westerberg@linux.intel.com, linux-mmc@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/3] PNPACPI: exclude devices already bound Date: Fri, 23 Nov 2012 13:35:59 +0200 Message-Id: <1353670561-22515-2-git-send-email-adrian.hunter@intel.com> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1353670561-22515-1-git-send-email-adrian.hunter@intel.com> References: <1353670561-22515-1-git-send-email-adrian.hunter@intel.com> Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Mika Westerberg This will exclude ACPI platform devices from also being created as PNP devices. Signed-off-by: Adrian Hunter --- drivers/pnp/pnpacpi/core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/pnp/pnpacpi/core.c b/drivers/pnp/pnpacpi/core.c index 26b5d4b..653d563 100644 --- a/drivers/pnp/pnpacpi/core.c +++ b/drivers/pnp/pnpacpi/core.c @@ -242,6 +242,10 @@ static int __init pnpacpi_add_device(struct acpi_device *device) char *pnpid; struct acpi_hardware_id *id; + /* Skip devices that are already bound */ + if (device->physical_node_count) + return 0; + /* * If a PnPacpi device is not present , the device * driver should not be loaded.