On Fri, 2006-10-20 at 11:25 +0200, fseidel@xxxxxxx wrote: > Currently acpi_bus_register_driver only reports an error > (-ENODEV) if acpi_disabled is true, > but many acpi drivers also depend on a negative error > value if no driver could be attached to a device > (as e.g. driver/acpi/asus_acpi.c). > This patch adds this again (without changing return type > of acpi_driver_attach for this). Looks fine to me. acpi_bus_register_driver must return -ENODEV when no device with matching HID was found. E.g. battery also should currently get always loaded even a system never has one. driver_attach returned the amount of found devices in past, this was changed recently (can't find the patch/mail) right now. This change broke things and should get corrected by these patches. Thomas - To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html