Subject: [PATCH] [acpi driver model] Add ->d_probe() method to struct acpi_device_driver This method is to be called by the ACPI driver core when trying to match a driver to a device. It is provided to the driver to do an extra check on a device that it matches, or to (usually nasty) manual checks on devices that it can't match via any type of ID (like video devices). Signed-off-by: Patrick Mochel --- include/acpi/driver.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) applies-to: 8612bded29f4f0739101dee6d8def76d8f4467d5 9607168f4ff831822faa3bc7fe4b73df6e6927aa diff --git a/include/acpi/driver.h b/include/acpi/driver.h index 16002ed..b521bc0 100644 --- a/include/acpi/driver.h +++ b/include/acpi/driver.h @@ -16,6 +16,7 @@ struct acpi_device_driver { struct acpi_driver_proc * d_proc; struct acpi_driver_sysfs * d_sysfs; + int (*d_probe) (struct acpi_dev * ad); int (*d_add) (struct acpi_dev * ad); int (*d_remove) (struct acpi_dev * ad); @@ -50,6 +51,10 @@ extern void acpi_driver_unregister(struc * ...and go from there. */ +#define acpi_no_probe(__name) \ +static int __name##_probe(struct acpi_dev * ad) { return 1; } + + #define acpi_no_start(__name) \ static int __name##_start(struct acpi_dev * ad) { return 0; } --- 0.99.9.GIT