X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Facpi%2Fscan.c;h=4e46eeddf19c4bec9312f736069c50bba65f5ff9;hb=3ec04f3d2903fdf6d9849a8633af59b8628164a5;hp=da2e35c1d37316ce8f874be9c931e48278de18c6;hpb=8d40237c730b8be87c1b80a5d96b9c603fefa829;p=linux-2.6.git diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index da2e35c1d..4e46eeddf 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -4,7 +4,6 @@ #include #include -#include #include #include /* for acpi_ex_eisa_id_to_string() */ @@ -159,10 +158,10 @@ acpi_bus_get_power_flags ( device->power.state = ACPI_STATE_UNKNOWN; - return_VALUE(0); + return 0; } -int +static int acpi_match_ids ( struct acpi_device *device, char *ids) @@ -281,7 +280,7 @@ acpi_bus_get_wakeup_device_flags ( end: if (ACPI_FAILURE(status)) device->flags.wake_capable = 0; - return_VALUE(0); + return 0; } /* -------------------------------------------------------------------------- @@ -315,8 +314,6 @@ acpi_bus_match ( struct acpi_device *device, struct acpi_driver *driver) { - if (driver && driver->ops.match) - return driver->ops.match(device, driver); return acpi_match_ids(device, driver->ids); } @@ -454,7 +451,6 @@ acpi_bus_register_driver ( return_VALUE(count); } -EXPORT_SYMBOL(acpi_bus_register_driver); /** @@ -483,7 +479,6 @@ acpi_bus_unregister_driver ( error = -EINVAL; return_VALUE(error); } -EXPORT_SYMBOL(acpi_bus_unregister_driver); /** * acpi_bus_find_driver @@ -500,6 +495,9 @@ acpi_bus_find_driver ( ACPI_FUNCTION_TRACE("acpi_bus_find_driver"); + if (!device->flags.hardware_id && !device->flags.compatible_ids) + goto Done; + spin_lock(&acpi_device_lock); list_for_each_safe(node,next,&acpi_bus_drivers) { struct acpi_driver * driver = container_of(node,struct acpi_driver,node); @@ -764,7 +762,7 @@ void acpi_device_get_debug_info(struct acpi_device * device, acpi_handle handle, #endif /*CONFIG_ACPI_DEBUG_OUTPUT*/ } -int +static int acpi_bus_add ( struct acpi_device **child, struct acpi_device *parent, @@ -908,7 +906,7 @@ end: return_VALUE(result); } -EXPORT_SYMBOL(acpi_bus_add); + static int acpi_bus_scan (struct acpi_device *start) @@ -1012,7 +1010,6 @@ static int acpi_bus_scan (struct acpi_device *start) return_VALUE(0); } -EXPORT_SYMBOL(acpi_bus_scan); static int