diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2008-04-01 00:22:26 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2008-04-01 00:22:26 -0400 |
| commit | 399f486286f44d55c4fff0e9cc5d712f2b443489 (patch) | |
| tree | 0c2820b3e04232eaa96f08c1057b87728fb3e7a4 /drivers/misc | |
| parent | 481419ec9fbdf3f4ec5389c7e91a81b4a7ebee8d (diff) | |
| parent | a9edadbf790d72adf6ebed476cb5caf7743e7e4a (diff) | |
Merge master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6 into for-linus
Diffstat (limited to 'drivers/misc')
| -rw-r--r-- | drivers/misc/Kconfig | 1 | ||||
| -rw-r--r-- | drivers/misc/acer-wmi.c | 44 | ||||
| -rw-r--r-- | drivers/misc/fujitsu-laptop.c | 2 | ||||
| -rw-r--r-- | drivers/misc/ibmasm/module.c | 2 | ||||
| -rw-r--r-- | drivers/misc/lkdtm.c | 2 | ||||
| -rw-r--r-- | drivers/misc/sony-laptop.c | 2 |
6 files changed, 36 insertions, 17 deletions
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index 982e27b86d10..962817e49fba 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig | |||
| @@ -108,6 +108,7 @@ config ACER_WMI | |||
| 108 | depends on ACPI | 108 | depends on ACPI |
| 109 | depends on LEDS_CLASS | 109 | depends on LEDS_CLASS |
| 110 | depends on BACKLIGHT_CLASS_DEVICE | 110 | depends on BACKLIGHT_CLASS_DEVICE |
| 111 | depends on SERIO_I8042 | ||
| 111 | select ACPI_WMI | 112 | select ACPI_WMI |
| 112 | ---help--- | 113 | ---help--- |
| 113 | This is a driver for newer Acer (and Wistron) laptops. It adds | 114 | This is a driver for newer Acer (and Wistron) laptops. It adds |
diff --git a/drivers/misc/acer-wmi.c b/drivers/misc/acer-wmi.c index 74d12b4a3abd..dd13a3749927 100644 --- a/drivers/misc/acer-wmi.c +++ b/drivers/misc/acer-wmi.c | |||
| @@ -219,6 +219,15 @@ static struct dmi_system_id acer_quirks[] = { | |||
| 219 | }, | 219 | }, |
| 220 | { | 220 | { |
| 221 | .callback = dmi_matched, | 221 | .callback = dmi_matched, |
| 222 | .ident = "Acer Aspire 3610", | ||
| 223 | .matches = { | ||
| 224 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), | ||
| 225 | DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 3610"), | ||
| 226 | }, | ||
| 227 | .driver_data = &quirk_acer_travelmate_2490, | ||
| 228 | }, | ||
| 229 | { | ||
| 230 | .callback = dmi_matched, | ||
| 222 | .ident = "Acer Aspire 5100", | 231 | .ident = "Acer Aspire 5100", |
| 223 | .matches = { | 232 | .matches = { |
| 224 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), | 233 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), |
| @@ -228,6 +237,15 @@ static struct dmi_system_id acer_quirks[] = { | |||
| 228 | }, | 237 | }, |
| 229 | { | 238 | { |
| 230 | .callback = dmi_matched, | 239 | .callback = dmi_matched, |
| 240 | .ident = "Acer Aspire 5610", | ||
| 241 | .matches = { | ||
| 242 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), | ||
| 243 | DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5610"), | ||
| 244 | }, | ||
| 245 | .driver_data = &quirk_acer_travelmate_2490, | ||
| 246 | }, | ||
| 247 | { | ||
| 248 | .callback = dmi_matched, | ||
| 231 | .ident = "Acer Aspire 5630", | 249 | .ident = "Acer Aspire 5630", |
| 232 | .matches = { | 250 | .matches = { |
| 233 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), | 251 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), |
| @@ -761,11 +779,11 @@ enum led_brightness value) | |||
| 761 | } | 779 | } |
| 762 | 780 | ||
| 763 | static struct led_classdev mail_led = { | 781 | static struct led_classdev mail_led = { |
| 764 | .name = "acer-mail:green", | 782 | .name = "acer-wmi::mail", |
| 765 | .brightness_set = mail_led_set, | 783 | .brightness_set = mail_led_set, |
| 766 | }; | 784 | }; |
| 767 | 785 | ||
| 768 | static int __init acer_led_init(struct device *dev) | 786 | static int __devinit acer_led_init(struct device *dev) |
| 769 | { | 787 | { |
| 770 | return led_classdev_register(dev, &mail_led); | 788 | return led_classdev_register(dev, &mail_led); |
| 771 | } | 789 | } |
| @@ -798,7 +816,7 @@ static struct backlight_ops acer_bl_ops = { | |||
| 798 | .update_status = update_bl_status, | 816 | .update_status = update_bl_status, |
| 799 | }; | 817 | }; |
| 800 | 818 | ||
| 801 | static int __init acer_backlight_init(struct device *dev) | 819 | static int __devinit acer_backlight_init(struct device *dev) |
| 802 | { | 820 | { |
| 803 | struct backlight_device *bd; | 821 | struct backlight_device *bd; |
| 804 | 822 | ||
| @@ -817,7 +835,7 @@ static int __init acer_backlight_init(struct device *dev) | |||
| 817 | return 0; | 835 | return 0; |
| 818 | } | 836 | } |
| 819 | 837 | ||
| 820 | static void __exit acer_backlight_exit(void) | 838 | static void acer_backlight_exit(void) |
| 821 | { | 839 | { |
| 822 | backlight_device_unregister(acer_backlight_device); | 840 | backlight_device_unregister(acer_backlight_device); |
| 823 | } | 841 | } |
| @@ -1052,11 +1070,12 @@ static int __init acer_wmi_init(void) | |||
| 1052 | 1070 | ||
| 1053 | if (wmi_has_guid(WMID_GUID2) && interface) { | 1071 | if (wmi_has_guid(WMID_GUID2) && interface) { |
| 1054 | if (ACPI_FAILURE(WMID_set_capabilities())) { | 1072 | if (ACPI_FAILURE(WMID_set_capabilities())) { |
| 1055 | printk(ACER_ERR "Unable to detect available devices\n"); | 1073 | printk(ACER_ERR "Unable to detect available WMID " |
| 1074 | "devices\n"); | ||
| 1056 | return -ENODEV; | 1075 | return -ENODEV; |
| 1057 | } | 1076 | } |
| 1058 | } else if (!wmi_has_guid(WMID_GUID2) && interface) { | 1077 | } else if (!wmi_has_guid(WMID_GUID2) && interface) { |
| 1059 | printk(ACER_ERR "Unable to detect available devices\n"); | 1078 | printk(ACER_ERR "No WMID device detection method found\n"); |
| 1060 | return -ENODEV; | 1079 | return -ENODEV; |
| 1061 | } | 1080 | } |
| 1062 | 1081 | ||
| @@ -1064,21 +1083,20 @@ static int __init acer_wmi_init(void) | |||
| 1064 | interface = &AMW0_interface; | 1083 | interface = &AMW0_interface; |
| 1065 | 1084 | ||
| 1066 | if (ACPI_FAILURE(AMW0_set_capabilities())) { | 1085 | if (ACPI_FAILURE(AMW0_set_capabilities())) { |
| 1067 | printk(ACER_ERR "Unable to detect available devices\n"); | 1086 | printk(ACER_ERR "Unable to detect available AMW0 " |
| 1087 | "devices\n"); | ||
| 1068 | return -ENODEV; | 1088 | return -ENODEV; |
| 1069 | } | 1089 | } |
| 1070 | } | 1090 | } |
| 1071 | 1091 | ||
| 1072 | if (wmi_has_guid(AMW0_GUID1)) { | 1092 | if (wmi_has_guid(AMW0_GUID1)) |
| 1073 | if (ACPI_FAILURE(AMW0_find_mailled())) | 1093 | AMW0_find_mailled(); |
| 1074 | printk(ACER_ERR "Unable to detect mail LED\n"); | ||
| 1075 | } | ||
| 1076 | 1094 | ||
| 1077 | find_quirks(); | 1095 | find_quirks(); |
| 1078 | 1096 | ||
| 1079 | if (!interface) { | 1097 | if (!interface) { |
| 1080 | printk(ACER_ERR "No or unsupported WMI interface, unable to "); | 1098 | printk(ACER_ERR "No or unsupported WMI interface, unable to " |
| 1081 | printk(KERN_CONT "load.\n"); | 1099 | "load\n"); |
| 1082 | return -ENODEV; | 1100 | return -ENODEV; |
| 1083 | } | 1101 | } |
| 1084 | 1102 | ||
diff --git a/drivers/misc/fujitsu-laptop.c b/drivers/misc/fujitsu-laptop.c index 1cfd7f3f1294..e2e7c05a147b 100644 --- a/drivers/misc/fujitsu-laptop.c +++ b/drivers/misc/fujitsu-laptop.c | |||
| @@ -231,7 +231,7 @@ static int acpi_fujitsu_remove(struct acpi_device *device, int type) | |||
| 231 | 231 | ||
| 232 | if (!device || !acpi_driver_data(device)) | 232 | if (!device || !acpi_driver_data(device)) |
| 233 | return -EINVAL; | 233 | return -EINVAL; |
| 234 | fujitsu->acpi_handle = 0; | 234 | fujitsu->acpi_handle = NULL; |
| 235 | 235 | ||
| 236 | return 0; | 236 | return 0; |
| 237 | } | 237 | } |
diff --git a/drivers/misc/ibmasm/module.c b/drivers/misc/ibmasm/module.c index 4f9d4a9da983..b5f6add34b0b 100644 --- a/drivers/misc/ibmasm/module.c +++ b/drivers/misc/ibmasm/module.c | |||
| @@ -106,7 +106,7 @@ static int __devinit ibmasm_init_one(struct pci_dev *pdev, const struct pci_devi | |||
| 106 | sp->irq = pdev->irq; | 106 | sp->irq = pdev->irq; |
| 107 | sp->base_address = ioremap(pci_resource_start(pdev, 0), | 107 | sp->base_address = ioremap(pci_resource_start(pdev, 0), |
| 108 | pci_resource_len(pdev, 0)); | 108 | pci_resource_len(pdev, 0)); |
| 109 | if (sp->base_address == 0) { | 109 | if (!sp->base_address) { |
| 110 | dev_err(sp->dev, "Failed to ioremap pci memory\n"); | 110 | dev_err(sp->dev, "Failed to ioremap pci memory\n"); |
| 111 | result = -ENODEV; | 111 | result = -ENODEV; |
| 112 | goto error_ioremap; | 112 | goto error_ioremap; |
diff --git a/drivers/misc/lkdtm.c b/drivers/misc/lkdtm.c index c884730c5eaf..1bfe5d16963b 100644 --- a/drivers/misc/lkdtm.c +++ b/drivers/misc/lkdtm.c | |||
| @@ -197,7 +197,7 @@ static int lkdtm_parse_commandline(void) | |||
| 197 | { | 197 | { |
| 198 | int i; | 198 | int i; |
| 199 | 199 | ||
| 200 | if (cpoint_name == INVALID || cpoint_type == NONE || | 200 | if (cpoint_name == NULL || cpoint_type == NULL || |
| 201 | cpoint_count < 1 || recur_count < 1) | 201 | cpoint_count < 1 || recur_count < 1) |
| 202 | return -EINVAL; | 202 | return -EINVAL; |
| 203 | 203 | ||
diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c index 899e3f75f288..02ff3d19b1cc 100644 --- a/drivers/misc/sony-laptop.c +++ b/drivers/misc/sony-laptop.c | |||
| @@ -315,7 +315,7 @@ static void sony_laptop_report_input_event(u8 event) | |||
| 315 | break; | 315 | break; |
| 316 | 316 | ||
| 317 | default: | 317 | default: |
| 318 | if (event > ARRAY_SIZE(sony_laptop_input_index)) { | 318 | if (event >= ARRAY_SIZE(sony_laptop_input_index)) { |
| 319 | dprintk("sony_laptop_report_input_event, event not known: %d\n", event); | 319 | dprintk("sony_laptop_report_input_event, event not known: %d\n", event); |
| 320 | break; | 320 | break; |
| 321 | } | 321 | } |
