On 6/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
+
+static int atlas_acpi_button_remove(struct acpi_device *device, int type)
+{
+       acpi_status status;
+
+       atlas_free_input();
+       status = acpi_remove_address_space_handler(device->handle,
+                               0x81, &acpi_atlas_button_handler);
+       if (ACPI_FAILURE(status))
+               printk(KERN_ERR "Atlas: Error removing addr spc handler\n");
+

I think that you should free (unregister) input device only after
button handler was unregistered, otherwise there is a risk that it
will try to access already freed device. Other than that input part
looks good.

--
Dmitry
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to