Lines Matching refs:acpi_dev
889 struct acpi_device *acpi_dev = to_acpi_device(dev);
892 return acpi_dev->flags.match_driver
893 && !acpi_match_device_ids(acpi_dev, acpi_drv->ids);
903 struct acpi_device *acpi_dev = to_acpi_device(dev);
907 if (acpi_dev->handler && !acpi_is_pnp_device(acpi_dev))
913 ret = acpi_drv->ops.add(acpi_dev);
917 acpi_dev->driver = acpi_drv;
920 acpi_drv->name, acpi_dev->pnp.bus_id));
923 ret = acpi_device_install_notify_handler(acpi_dev);
926 acpi_drv->ops.remove(acpi_dev);
928 acpi_dev->driver = NULL;
929 acpi_dev->driver_data = NULL;
935 acpi_drv->name, acpi_dev->pnp.bus_id));
942 struct acpi_device *acpi_dev = to_acpi_device(dev);
943 struct acpi_driver *acpi_drv = acpi_dev->driver;
947 acpi_device_remove_notify_handler(acpi_dev);
949 acpi_drv->ops.remove(acpi_dev);
951 acpi_dev->driver = NULL;
952 acpi_dev->driver_data = NULL;