From patchwork Thu Nov 1 14:42:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Toshi Kani X-Patchwork-Id: 1685271 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 7A985DFE75 for ; Thu, 1 Nov 2012 14:51:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761460Ab2KAOuO (ORCPT ); Thu, 1 Nov 2012 10:50:14 -0400 Received: from g4t0017.houston.hp.com ([15.201.24.20]:9610 "EHLO g4t0017.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761590Ab2KAOuL (ORCPT ); Thu, 1 Nov 2012 10:50:11 -0400 Received: from g4t0018.houston.hp.com (g4t0018.houston.hp.com [16.234.32.27]) by g4t0017.houston.hp.com (Postfix) with ESMTP id 430953830A; Thu, 1 Nov 2012 14:50:10 +0000 (UTC) Received: from misato.fc.hp.com (misato.fc.hp.com [16.71.12.41]) by g4t0018.houston.hp.com (Postfix) with ESMTP id 8D7ED1016E; Thu, 1 Nov 2012 14:50:09 +0000 (UTC) From: Toshi Kani To: linux-acpi@vger.kernel.org, lenb@kernel.org, rjw@sisk.pl Cc: linux-kernel@vger.kernel.org, isimatu.yasuaki@jp.fujitsu.com, imammedo@redhat.com, vijaymohan.pandarathil@hp.com, prarit@redhat.com, bhelgaas@google.com, Toshi Kani Subject: [PATCH v3 1/2] ACPI: Export functions for hot-remove Date: Thu, 1 Nov 2012 08:42:12 -0600 Message-Id: <1351780933-30560-2-git-send-email-toshi.kani@hp.com> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1351780933-30560-1-git-send-email-toshi.kani@hp.com> References: <1351780933-30560-1-git-send-email-toshi.kani@hp.com> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Exported acpi_os_hotplug_execute() and acpi_bus_hot_remove_device() so that they can be called from modules for hot-remove operations. Signed-off-by: Toshi Kani --- drivers/acpi/osl.c | 1 + drivers/acpi/scan.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 9eaf708..7dfe91d 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -986,6 +986,7 @@ acpi_status acpi_os_hotplug_execute(acpi_osd_exec_callback function, { return __acpi_os_execute(0, function, context, 1); } +EXPORT_SYMBOL(acpi_os_hotplug_execute); void acpi_os_wait_events_complete(void) { diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 1fcb867..a81845e 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -157,6 +157,7 @@ err_out: kfree(context); return; } +EXPORT_SYMBOL(acpi_bus_hot_remove_device); static ssize_t acpi_eject_store(struct device *d, struct device_attribute *attr,