The patch titled acpi_bus_unregister_driver(): make void has been removed from the -mm tree. Its filename is acpi_bus_unregister_driver-make-void.patch This patch was probably dropped from -mm because it has now been merged into a subsystem tree or into Linus's tree, or because it was folded into its parent patch in the -mm tree. From: Bjorn Helgaas <bjorn.helgaas@xxxxxx> Nobody looks at the return value, and this brings it into line with pci_unregister_driver(), etc. Also removed validation of the driver pointer passed in to register and unregister. More consistent, and we'll find bugs faster if we fault rather than returning an error that's ignored. Also makes internal functions acpi_device_unregister() and acpi_driver_detach() void, since nobody uses their returns either. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@xxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/acpi/scan.c | 16 +++------------- include/acpi/acpi_bus.h | 2 +- 2 files changed, 4 insertions(+), 14 deletions(-) diff -puN drivers/acpi/scan.c~acpi_bus_unregister_driver-make-void drivers/acpi/scan.c --- devel/drivers/acpi/scan.c~acpi_bus_unregister_driver-make-void 2006-05-11 14:34:36.000000000 -0700 +++ devel-akpm/drivers/acpi/scan.c 2006-05-11 14:35:53.000000000 -0700 @@ -143,7 +143,7 @@ static void acpi_device_register(struct create_sysfs_device_files(device); } -static int acpi_device_unregister(struct acpi_device *device, int type) +static void acpi_device_unregister(struct acpi_device *device, int type) { spin_lock(&acpi_device_lock); if (device->parent) { @@ -159,7 +159,6 @@ static int acpi_device_unregister(struct acpi_detach_data(device->handle, acpi_bus_data_handler); remove_sysfs_device_files(device); kobject_unregister(&device->kobj); - return 0; } void acpi_bus_data_handler(acpi_handle handle, u32 function, void *context) @@ -554,7 +553,7 @@ static void acpi_driver_attach(struct ac spin_unlock(&acpi_device_lock); } -static int acpi_driver_detach(struct acpi_driver *drv) +static void acpi_driver_detach(struct acpi_driver *drv) { struct list_head *node, *next; @@ -574,7 +573,6 @@ static int acpi_driver_detach(struct acp } } spin_unlock(&acpi_device_lock); - return 0; } /** @@ -590,9 +588,6 @@ int acpi_bus_register_driver(struct acpi if (acpi_disabled) return -ENODEV; - if (!driver) - return -EINVAL; - spin_lock(&acpi_device_lock); list_add_tail(&driver->node, &acpi_bus_drivers); spin_unlock(&acpi_device_lock); @@ -610,12 +605,8 @@ EXPORT_SYMBOL(acpi_bus_register_driver); * Unregisters a driver with the ACPI bus. Searches the namespace for all * devices that match the driver's criteria and unbinds. */ -int acpi_bus_unregister_driver(struct acpi_driver *driver) +void acpi_bus_unregister_driver(struct acpi_driver *driver) { - - if (!driver) - return -EINVAL; - acpi_driver_detach(driver); if (!atomic_read(&driver->references)) { @@ -623,7 +614,6 @@ int acpi_bus_unregister_driver(struct ac list_del_init(&driver->node); spin_unlock(&acpi_device_lock); } - return 0; } EXPORT_SYMBOL(acpi_bus_unregister_driver); diff -puN include/acpi/acpi_bus.h~acpi_bus_unregister_driver-make-void include/acpi/acpi_bus.h --- devel/include/acpi/acpi_bus.h~acpi_bus_unregister_driver-make-void 2006-05-11 14:34:36.000000000 -0700 +++ devel-akpm/include/acpi/acpi_bus.h 2006-05-11 14:34:36.000000000 -0700 @@ -327,7 +327,7 @@ int acpi_bus_set_power(acpi_handle handl int acpi_bus_generate_event(struct acpi_device *device, u8 type, int data); int acpi_bus_receive_event(struct acpi_bus_event *event); int acpi_bus_register_driver(struct acpi_driver *driver); -int acpi_bus_unregister_driver(struct acpi_driver *driver); +void acpi_bus_unregister_driver(struct acpi_driver *driver); int acpi_bus_add(struct acpi_device **child, struct acpi_device *parent, acpi_handle handle, int type); int acpi_bus_trim(struct acpi_device *start, int rmdevice); _ Patches currently in -mm which might be from bjorn.helgaas@xxxxxx are git-acpi.patch acpi-update-asus_acpi-driver-registration-fix.patch acpi-remove-__init-__exit-from-sony-add-remove-methods.patch git-ia64.patch e100-disable-interrupts-at-boot.patch vgacon-make-vga_map_mem-take-size-remove-extra-use.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html