From patchwork Thu Nov 8 18:29:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasilis Liaskovitis X-Patchwork-Id: 1716911 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 3D9503FCF7 for ; Thu, 8 Nov 2012 18:30:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756623Ab2KHSaf (ORCPT ); Thu, 8 Nov 2012 13:30:35 -0500 Received: from mail-bk0-f46.google.com ([209.85.214.46]:44469 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756603Ab2KHS3k (ORCPT ); Thu, 8 Nov 2012 13:29:40 -0500 Received: by mail-bk0-f46.google.com with SMTP id jk13so1346644bkc.19 for ; Thu, 08 Nov 2012 10:29:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=lVKRHTqLn2Gzb4o4La62TPVKJx3blm3LO7Y425fSg4Q=; b=fz82YwN5jNTQuy8oi24Xi0+Zp+k5BrzcDrtrFeMq5rHYai2DG2c91vIGT0nPxXhwNq wl9yJTHQNK2oeySgFz5bJzxUiB4LkaMJF73/gWRqEWFG62BjRGXZ6xC8lojVwopfpxyo AedzlzAUPt5zxFLKc8XqZWPoZ5eIyBl+3nYqLr8rjmyF31A7O/L+Oj32cRWXwiK80oAU BqcCVSZipo906fvY64v/geclT1ViVUMKWPZZx8cky5vTTHZFgXlqo/v+eYa7Dv+DYvsH iLSer1ClGgyoa/484eCXBHlU6JfuoGccO2pN+RlgbYG29ivHnhDFfq3XbGAuAQsPS30o 8Y7A== Received: by 10.204.11.213 with SMTP id u21mr2533109bku.42.1352399379147; Thu, 08 Nov 2012 10:29:39 -0800 (PST) Received: from dhcp-192-168-178-175.ri.profitbricks.localdomain ([62.217.45.26]) by mx.google.com with ESMTPS id z22sm17670961bkw.2.2012.11.08.10.29.37 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 08 Nov 2012 10:29:38 -0800 (PST) From: Vasilis Liaskovitis To: linux-acpi@vger.kernel.org, isimatu.yasuaki@jp.fujitsu.com Cc: rjw@sisk.pl, wency@cn.fujitsu.com, lenb@kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-mm@kvack.org, Vasilis Liaskovitis Subject: [RFC PATCH 1/3] acpi: Introduce prepare_remove operation in acpi_device_ops Date: Thu, 8 Nov 2012 19:29:29 +0100 Message-Id: <1352399371-8015-2-git-send-email-vasilis.liaskovitis@profitbricks.com> X-Mailer: git-send-email 1.7.9 In-Reply-To: <1352399371-8015-1-git-send-email-vasilis.liaskovitis@profitbricks.com> References: <1352399371-8015-1-git-send-email-vasilis.liaskovitis@profitbricks.com> X-Gm-Message-State: ALoCoQkFptnXsB1BI0CK87ENGc84eroTOpZqWUnzcPXkM28mWu8Stz9vlySfGubmgbLRENJVXj/9 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Signed-off-by: Vasilis Liaskovitis --- include/acpi/acpi_bus.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index 2242c10..6ef1692 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h @@ -94,6 +94,7 @@ typedef int (*acpi_op_start) (struct acpi_device * device); typedef int (*acpi_op_bind) (struct acpi_device * device); typedef int (*acpi_op_unbind) (struct acpi_device * device); typedef void (*acpi_op_notify) (struct acpi_device * device, u32 event); +typedef int (*acpi_op_prepare_remove) (struct acpi_device *device); struct acpi_bus_ops { u32 acpi_op_add:1; @@ -107,6 +108,7 @@ struct acpi_device_ops { acpi_op_bind bind; acpi_op_unbind unbind; acpi_op_notify notify; + acpi_op_prepare_remove prepare_remove; }; #define ACPI_DRIVER_ALL_NOTIFY_EVENTS 0x1 /* system AND device events */