Searched refs:sub_driver (Results 1 – 1 of 1) sorted by relevance
47 int (*init)(struct generic_sub_driver *sub_driver);48 void (*notify)(struct generic_sub_driver *sub_driver, u32 event);148 struct generic_sub_driver *sub_driver = data; in dispatch_acpi_notify() local150 if (!sub_driver || !sub_driver->notify) in dispatch_acpi_notify()152 sub_driver->notify(sub_driver, event); in dispatch_acpi_notify()155 static int __init setup_acpi_notify(struct generic_sub_driver *sub_driver) in setup_acpi_notify() argument159 if (!*sub_driver->handle) in setup_acpi_notify()162 sub_driver->device = acpi_fetch_acpi_dev(*sub_driver->handle); in setup_acpi_notify()163 if (!sub_driver->device) { in setup_acpi_notify()164 pr_err("acpi_fetch_acpi_dev(%s) failed\n", sub_driver->name); in setup_acpi_notify()[all …]