Skip to contentSkip to conversation

drivers/acpi/scan.c: make acpi_bus_type static

PATCH New [email protected] 1 participant 1 message Jun 30, 2006 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 4/6 drivers/acpi/scan.c: make acpi_bus_type static

From: Adrian Bunk <[email protected]>

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 .

---

 drivers/acpi/scan.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/scan.c renamed from drivers/acpi/scan.c~drivers-acpi-scanc-make-acpi_bus_type-static +1 -1
diff -puN drivers/acpi/scan.c~drivers-acpi-scanc-make-acpi_bus_type-static 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,

_