Searched refs:sub_driver (Results 1 – 1 of 1) sorted by relevance
48 int (*init)(struct generic_sub_driver *sub_driver);49 void (*notify)(struct generic_sub_driver *sub_driver, u32 event);150 struct generic_sub_driver *sub_driver = data; in dispatch_acpi_notify() local152 if (!sub_driver || !sub_driver->notify) in dispatch_acpi_notify()154 sub_driver->notify(sub_driver, event); in dispatch_acpi_notify()157 static int __init setup_acpi_notify(struct generic_sub_driver *sub_driver) in setup_acpi_notify() argument161 if (!*sub_driver->handle) in setup_acpi_notify()164 sub_driver->device = acpi_fetch_acpi_dev(*sub_driver->handle); in setup_acpi_notify()165 if (!sub_driver->device) { in setup_acpi_notify()166 pr_err("acpi_fetch_acpi_dev(%s) failed\n", sub_driver->name); in setup_acpi_notify()[all …]