/* Registers a driver with the ACPI bus. Searches the namespace for all devices that match the driver's criteria and binds. Returns zero for success or a negative error status for failure.  */
int acpi_bus_register_driver(struct acpi_driver *driver)
/* Registers a driver with the ACPI bus. Searches the namespace for all devices that match the driver's criteria and binds. Returns zero for success or a negative error status for failure.  */
int acpi_bus_register_driver(struct acpi_driver *driver)
{
	int ret;
	if (acpi_disabled)
		return -ENODEV;
	driver->drv.name = driver->name;
	driver->drv.bus = &acpi_bus_type;
	driver->drv.owner = driver->owner;
	ret = driver_register(&driver->drv);
	return ret;
}