]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/acpi/toshiba_acpi.c
backlight: Remove unneeded owner field
[linux-2.6-omap-h63xx.git] / drivers / acpi / toshiba_acpi.c
index d9b651ffcdc0c21335f1c15e1e7ef7e3d86361cf..efc3669a84e8e5cae3a8bb0bd775693f7585ecf8 100644 (file)
@@ -125,7 +125,7 @@ static int write_acpi_int(const char *methodName, int val)
        union acpi_object in_objs[1];
        acpi_status status;
 
-       params.count = sizeof(in_objs) / sizeof(in_objs[0]);
+       params.count = ARRAY_SIZE(in_objs);
        params.pointer = in_objs;
        in_objs[0].type = ACPI_TYPE_INTEGER;
        in_objs[0].integer.value = val;
@@ -534,7 +534,6 @@ static acpi_status __exit remove_device(void)
 }
 
 static struct backlight_properties toshiba_backlight_data = {
-        .owner          = THIS_MODULE,
         .get_brightness = get_lcd,
         .update_status  = set_lcd_status,
         .max_brightness = HCI_LCD_BRIGHTNESS_LEVELS - 1,
@@ -561,10 +560,6 @@ static int __init toshiba_acpi_init(void)
        if (acpi_disabled)
                return -ENODEV;
 
-       if (!acpi_specific_hotkey_enabled) {
-               printk(MY_INFO "Using generic hotkey driver\n");
-               return -ENODEV;
-       }
        /* simple device detection: look for HCI method */
        if (is_valid_acpi_path(METHOD_HCI_1))
                method_hci = METHOD_HCI_1;