From patchwork Tue Mar 24 16:55:22 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 14071 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 n2OGtV5H007559 for ; Tue, 24 Mar 2009 16:55:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761230AbZCXQz3 (ORCPT ); Tue, 24 Mar 2009 12:55:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932084AbZCXQz2 (ORCPT ); Tue, 24 Mar 2009 12:55:28 -0400 Received: from g5t0007.atlanta.hp.com ([15.192.0.44]:18989 "EHLO g5t0007.atlanta.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762677AbZCXQzZ (ORCPT ); Tue, 24 Mar 2009 12:55:25 -0400 Received: from smtp2.fc.hp.com (smtp.cnd.hp.com [15.11.136.114]) by g5t0007.atlanta.hp.com (Postfix) with ESMTP id B194A14006; Tue, 24 Mar 2009 16:55:23 +0000 (UTC) Received: from localhost.localdomain (lart.fc.hp.com [15.11.146.31]) by smtp2.fc.hp.com (Postfix) with ESMTP id 93DC02BD517; Tue, 24 Mar 2009 16:31:39 +0000 (UTC) Received: from bob.kio (localhost [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id D20D52614B; Tue, 24 Mar 2009 10:55:22 -0600 (MDT) From: Bjorn Helgaas Subject: [PATCH 1/3] ACPI: remove unused acpi_device_ops .lock and .scan methods To: Len Brown Cc: linux-acpi@vger.kernel.org, Li Shaohua , Rajesh Shah Date: Tue, 24 Mar 2009 10:55:22 -0600 Message-ID: <20090324165522.25119.23560.stgit@bob.kio> In-Reply-To: <20090324165420.25119.78955.stgit@bob.kio> References: <20090324165420.25119.78955.stgit@bob.kio> User-Agent: StGIT/0.14.3.215.gff3d MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org No drivers use the .lock and .scan methods, and the Linux/ACPI code doesn't even provide a way to invoke them, so remove them. Signed-off-by: Bjorn Helgaas --- include/acpi/acpi_bus.h | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index e9f6574..e3c5a4e 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h @@ -88,13 +88,11 @@ struct acpi_device; typedef int (*acpi_op_add) (struct acpi_device * device); typedef int (*acpi_op_remove) (struct acpi_device * device, int type); -typedef int (*acpi_op_lock) (struct acpi_device * device, int type); typedef int (*acpi_op_start) (struct acpi_device * device); typedef int (*acpi_op_stop) (struct acpi_device * device, int type); typedef int (*acpi_op_suspend) (struct acpi_device * device, pm_message_t state); typedef int (*acpi_op_resume) (struct acpi_device * device); -typedef int (*acpi_op_scan) (struct acpi_device * device); typedef int (*acpi_op_bind) (struct acpi_device * device); typedef int (*acpi_op_unbind) (struct acpi_device * device); typedef int (*acpi_op_shutdown) (struct acpi_device * device); @@ -117,12 +115,10 @@ struct acpi_bus_ops { struct acpi_device_ops { acpi_op_add add; acpi_op_remove remove; - acpi_op_lock lock; acpi_op_start start; acpi_op_stop stop; acpi_op_suspend suspend; acpi_op_resume resume; - acpi_op_scan scan; acpi_op_bind bind; acpi_op_unbind unbind; acpi_op_shutdown shutdown;