diff options
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/acer-wmi.c | 6 | ||||
-rw-r--r-- | drivers/misc/thinkpad_acpi.c | 3 | ||||
-rw-r--r-- | drivers/misc/tifm_7xx1.c | 2 |
3 files changed, 7 insertions, 4 deletions
diff --git a/drivers/misc/acer-wmi.c b/drivers/misc/acer-wmi.c index 74d12b4a3abd..cf71e312b5cb 100644 --- a/drivers/misc/acer-wmi.c +++ b/drivers/misc/acer-wmi.c | |||
@@ -765,7 +765,7 @@ static struct led_classdev mail_led = { | |||
765 | .brightness_set = mail_led_set, | 765 | .brightness_set = mail_led_set, |
766 | }; | 766 | }; |
767 | 767 | ||
768 | static int __init acer_led_init(struct device *dev) | 768 | static int __devinit acer_led_init(struct device *dev) |
769 | { | 769 | { |
770 | return led_classdev_register(dev, &mail_led); | 770 | return led_classdev_register(dev, &mail_led); |
771 | } | 771 | } |
@@ -798,7 +798,7 @@ static struct backlight_ops acer_bl_ops = { | |||
798 | .update_status = update_bl_status, | 798 | .update_status = update_bl_status, |
799 | }; | 799 | }; |
800 | 800 | ||
801 | static int __init acer_backlight_init(struct device *dev) | 801 | static int __devinit acer_backlight_init(struct device *dev) |
802 | { | 802 | { |
803 | struct backlight_device *bd; | 803 | struct backlight_device *bd; |
804 | 804 | ||
@@ -817,7 +817,7 @@ static int __init acer_backlight_init(struct device *dev) | |||
817 | return 0; | 817 | return 0; |
818 | } | 818 | } |
819 | 819 | ||
820 | static void __exit acer_backlight_exit(void) | 820 | static void acer_backlight_exit(void) |
821 | { | 821 | { |
822 | backlight_device_unregister(acer_backlight_device); | 822 | backlight_device_unregister(acer_backlight_device); |
823 | } | 823 | } |
diff --git a/drivers/misc/thinkpad_acpi.c b/drivers/misc/thinkpad_acpi.c index bb269d0c677e..6cb781262f94 100644 --- a/drivers/misc/thinkpad_acpi.c +++ b/drivers/misc/thinkpad_acpi.c | |||
@@ -1078,7 +1078,8 @@ static int hotkey_get_tablet_mode(int *status) | |||
1078 | if (!acpi_evalf(hkey_handle, &s, "MHKG", "d")) | 1078 | if (!acpi_evalf(hkey_handle, &s, "MHKG", "d")) |
1079 | return -EIO; | 1079 | return -EIO; |
1080 | 1080 | ||
1081 | return ((s & TP_HOTKEY_TABLET_MASK) != 0); | 1081 | *status = ((s & TP_HOTKEY_TABLET_MASK) != 0); |
1082 | return 0; | ||
1082 | } | 1083 | } |
1083 | 1084 | ||
1084 | /* | 1085 | /* |
diff --git a/drivers/misc/tifm_7xx1.c b/drivers/misc/tifm_7xx1.c index 63a089b29545..67503ea71d21 100644 --- a/drivers/misc/tifm_7xx1.c +++ b/drivers/misc/tifm_7xx1.c | |||
@@ -368,6 +368,8 @@ static int tifm_7xx1_probe(struct pci_dev *dev, | |||
368 | goto err_out_irq; | 368 | goto err_out_irq; |
369 | 369 | ||
370 | writel(TIFM_IRQ_ENABLE | TIFM_IRQ_SOCKMASK((1 << fm->num_sockets) - 1), | 370 | writel(TIFM_IRQ_ENABLE | TIFM_IRQ_SOCKMASK((1 << fm->num_sockets) - 1), |
371 | fm->addr + FM_CLEAR_INTERRUPT_ENABLE); | ||
372 | writel(TIFM_IRQ_ENABLE | TIFM_IRQ_SOCKMASK((1 << fm->num_sockets) - 1), | ||
371 | fm->addr + FM_SET_INTERRUPT_ENABLE); | 373 | fm->addr + FM_SET_INTERRUPT_ENABLE); |
372 | return 0; | 374 | return 0; |
373 | 375 | ||