diff options
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/x86/kernel/setup.c | 1 | ||||
| -rw-r--r-- | arch/x86/platform/mrst/mrst.c | 3 | ||||
| -rw-r--r-- | arch/x86/platform/olpc/olpc-xo1-sci.c | 4 | ||||
| -rw-r--r-- | arch/x86/platform/uv/uv_time.c | 3 |
4 files changed, 3 insertions, 8 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index a5d550f2fa6e..4689855c2f8a 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
| @@ -82,7 +82,6 @@ | |||
| 82 | #include <asm/timer.h> | 82 | #include <asm/timer.h> |
| 83 | #include <asm/i8259.h> | 83 | #include <asm/i8259.h> |
| 84 | #include <asm/sections.h> | 84 | #include <asm/sections.h> |
| 85 | #include <asm/dmi.h> | ||
| 86 | #include <asm/io_apic.h> | 85 | #include <asm/io_apic.h> |
| 87 | #include <asm/ist.h> | 86 | #include <asm/ist.h> |
| 88 | #include <asm/setup_arch.h> | 87 | #include <asm/setup_arch.h> |
diff --git a/arch/x86/platform/mrst/mrst.c b/arch/x86/platform/mrst/mrst.c index e31bcd8f2eee..a0a0a4389bbd 100644 --- a/arch/x86/platform/mrst/mrst.c +++ b/arch/x86/platform/mrst/mrst.c | |||
| @@ -356,8 +356,7 @@ static int __init sfi_parse_gpio(struct sfi_table_header *table) | |||
| 356 | num = SFI_GET_NUM_ENTRIES(sb, struct sfi_gpio_table_entry); | 356 | num = SFI_GET_NUM_ENTRIES(sb, struct sfi_gpio_table_entry); |
| 357 | pentry = (struct sfi_gpio_table_entry *)sb->pentry; | 357 | pentry = (struct sfi_gpio_table_entry *)sb->pentry; |
| 358 | 358 | ||
| 359 | gpio_table = (struct sfi_gpio_table_entry *) | 359 | gpio_table = kmalloc(num * sizeof(*pentry), GFP_KERNEL); |
| 360 | kmalloc(num * sizeof(*pentry), GFP_KERNEL); | ||
| 361 | if (!gpio_table) | 360 | if (!gpio_table) |
| 362 | return -1; | 361 | return -1; |
| 363 | memcpy(gpio_table, pentry, num * sizeof(*pentry)); | 362 | memcpy(gpio_table, pentry, num * sizeof(*pentry)); |
diff --git a/arch/x86/platform/olpc/olpc-xo1-sci.c b/arch/x86/platform/olpc/olpc-xo1-sci.c index 74704be7b1fe..9a2e590dd202 100644 --- a/arch/x86/platform/olpc/olpc-xo1-sci.c +++ b/arch/x86/platform/olpc/olpc-xo1-sci.c | |||
| @@ -460,7 +460,6 @@ static int setup_power_button(struct platform_device *pdev) | |||
| 460 | static void free_power_button(void) | 460 | static void free_power_button(void) |
| 461 | { | 461 | { |
| 462 | input_unregister_device(power_button_idev); | 462 | input_unregister_device(power_button_idev); |
| 463 | input_free_device(power_button_idev); | ||
| 464 | } | 463 | } |
| 465 | 464 | ||
| 466 | static int setup_ebook_switch(struct platform_device *pdev) | 465 | static int setup_ebook_switch(struct platform_device *pdev) |
| @@ -491,7 +490,6 @@ static int setup_ebook_switch(struct platform_device *pdev) | |||
| 491 | static void free_ebook_switch(void) | 490 | static void free_ebook_switch(void) |
| 492 | { | 491 | { |
| 493 | input_unregister_device(ebook_switch_idev); | 492 | input_unregister_device(ebook_switch_idev); |
| 494 | input_free_device(ebook_switch_idev); | ||
| 495 | } | 493 | } |
| 496 | 494 | ||
| 497 | static int setup_lid_switch(struct platform_device *pdev) | 495 | static int setup_lid_switch(struct platform_device *pdev) |
| @@ -526,6 +524,7 @@ static int setup_lid_switch(struct platform_device *pdev) | |||
| 526 | 524 | ||
| 527 | err_create_attr: | 525 | err_create_attr: |
| 528 | input_unregister_device(lid_switch_idev); | 526 | input_unregister_device(lid_switch_idev); |
| 527 | lid_switch_idev = NULL; | ||
| 529 | err_register: | 528 | err_register: |
| 530 | input_free_device(lid_switch_idev); | 529 | input_free_device(lid_switch_idev); |
| 531 | return r; | 530 | return r; |
| @@ -535,7 +534,6 @@ static void free_lid_switch(void) | |||
| 535 | { | 534 | { |
| 536 | device_remove_file(&lid_switch_idev->dev, &dev_attr_lid_wake_mode); | 535 | device_remove_file(&lid_switch_idev->dev, &dev_attr_lid_wake_mode); |
| 537 | input_unregister_device(lid_switch_idev); | 536 | input_unregister_device(lid_switch_idev); |
| 538 | input_free_device(lid_switch_idev); | ||
| 539 | } | 537 | } |
| 540 | 538 | ||
| 541 | static int xo1_sci_probe(struct platform_device *pdev) | 539 | static int xo1_sci_probe(struct platform_device *pdev) |
diff --git a/arch/x86/platform/uv/uv_time.c b/arch/x86/platform/uv/uv_time.c index 98718f604eb6..5c86786bbfd2 100644 --- a/arch/x86/platform/uv/uv_time.c +++ b/arch/x86/platform/uv/uv_time.c | |||
| @@ -159,10 +159,9 @@ static __init int uv_rtc_allocate_timers(void) | |||
| 159 | { | 159 | { |
| 160 | int cpu; | 160 | int cpu; |
| 161 | 161 | ||
| 162 | blade_info = kmalloc(uv_possible_blades * sizeof(void *), GFP_KERNEL); | 162 | blade_info = kzalloc(uv_possible_blades * sizeof(void *), GFP_KERNEL); |
| 163 | if (!blade_info) | 163 | if (!blade_info) |
| 164 | return -ENOMEM; | 164 | return -ENOMEM; |
| 165 | memset(blade_info, 0, uv_possible_blades * sizeof(void *)); | ||
| 166 | 165 | ||
| 167 | for_each_present_cpu(cpu) { | 166 | for_each_present_cpu(cpu) { |
| 168 | int nid = cpu_to_node(cpu); | 167 | int nid = cpu_to_node(cpu); |
