]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/acpi/bay.c
ACPI: bay: Convert ACPI Bay driver to be compatible with sysfs update.
[linux-2.6-omap-h63xx.git] / drivers / acpi / bay.c
index aa1b131c0fceba41b7d3bf7fc6fdaeb178db91cb..667fa1dfa1a361188607e82ce919b6528f270781 100644 (file)
@@ -49,16 +49,14 @@ MODULE_LICENSE("GPL");
 static void bay_notify(acpi_handle handle, u32 event, void *data);
 static int acpi_bay_add(struct acpi_device *device);
 static int acpi_bay_remove(struct acpi_device *device, int type);
-static int acpi_bay_match(struct acpi_device *device,
-                               struct acpi_driver *driver);
 
 static struct acpi_driver acpi_bay_driver = {
        .name = ACPI_BAY_DRIVER_NAME,
        .class = ACPI_BAY_CLASS,
+       .ids = ACPI_BAY_HID,
        .ops = {
                .add = acpi_bay_add,
                .remove = acpi_bay_remove,
-               .match = acpi_bay_match,
                },
 };
 
@@ -347,20 +345,6 @@ static int acpi_bay_remove(struct acpi_device *device, int type)
        return 0;
 }
 
-static int acpi_bay_match(struct acpi_device *device,
-                               struct acpi_driver *driver)
-{
-       if (!device || !driver)
-               return -EINVAL;
-
-       if (is_ejectable_bay(device->handle)) {
-               bay_dprintk(device->handle, "matching bay device");
-               return 0;
-       }
-
-       return -ENODEV;
-}
-
 /**
  * bay_create_acpi_device - add new devices to acpi
  * @handle - handle of the device to add