From: akpm@osdl.org Subject: [patch 4/6] drivers/acpi/scan.c: make acpi_bus_type static Date: Fri, 30 Jun 2006 02:15:18 -0700 Message-ID: <200606300915.k5U9FI1s001041@shell0.pdx.osdl.net> Return-path: Received: from smtp.osdl.org ([65.172.181.4]:21900 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S1751567AbWF3JRY (ORCPT ); Fri, 30 Jun 2006 05:17:24 -0400 Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: len.brown@intel.com Cc: linux-acpi@vger.kernel.org, akpm@osdl.org, bunk@stusta.de From: Adrian Bunk Make the needlessly global acpi_bus_type static. I'd also suggest to rename this struct, since although it's named acpi_bus_type, it's of type "struct bus_type", not "struct acpi_bus_type" as defined in include/acpi/acpi_bus.h . Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton --- drivers/acpi/scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/acpi/scan.c~drivers-acpi-scanc-make-acpi_bus_type-static drivers/acpi/scan.c --- a/drivers/acpi/scan.c~drivers-acpi-scanc-make-acpi_bus_type-static +++ a/drivers/acpi/scan.c @@ -1433,7 +1433,7 @@ static int acpi_device_resume(struct dev } -struct bus_type acpi_bus_type = { +static struct bus_type acpi_bus_type = { .name = "acpi", .suspend = acpi_device_suspend, .resume = acpi_device_resume, _