aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/processor_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/processor_core.c')
-rw-r--r--drivers/acpi/processor_core.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c
index b13d64415b7a..44c624bd40cb 100644
--- a/drivers/acpi/processor_core.c
+++ b/drivers/acpi/processor_core.c
@@ -277,7 +277,7 @@ static struct proc_dir_entry *acpi_processor_dir = NULL;
277 277
278static int acpi_processor_info_seq_show(struct seq_file *seq, void *offset) 278static int acpi_processor_info_seq_show(struct seq_file *seq, void *offset)
279{ 279{
280 struct acpi_processor *pr = (struct acpi_processor *)seq->private; 280 struct acpi_processor *pr = seq->private;
281 281
282 282
283 if (!pr) 283 if (!pr)
@@ -542,12 +542,12 @@ static int acpi_processor_start(struct acpi_device *device)
542 * Don't trust it blindly 542 * Don't trust it blindly
543 */ 543 */
544 if (processor_device_array[pr->id] != NULL && 544 if (processor_device_array[pr->id] != NULL &&
545 processor_device_array[pr->id] != (void *)device) { 545 processor_device_array[pr->id] != device) {
546 printk(KERN_WARNING "BIOS reported wrong ACPI id" 546 printk(KERN_WARNING "BIOS reported wrong ACPI id"
547 "for the processor\n"); 547 "for the processor\n");
548 return -ENODEV; 548 return -ENODEV;
549 } 549 }
550 processor_device_array[pr->id] = (void *)device; 550 processor_device_array[pr->id] = device;
551 551
552 processors[pr->id] = pr; 552 processors[pr->id] = pr;
553 553
@@ -578,7 +578,7 @@ static int acpi_processor_start(struct acpi_device *device)
578 578
579static void acpi_processor_notify(acpi_handle handle, u32 event, void *data) 579static void acpi_processor_notify(acpi_handle handle, u32 event, void *data)
580{ 580{
581 struct acpi_processor *pr = (struct acpi_processor *)data; 581 struct acpi_processor *pr = data;
582 struct acpi_device *device = NULL; 582 struct acpi_device *device = NULL;
583 583
584 584
@@ -637,7 +637,7 @@ static int acpi_processor_remove(struct acpi_device *device, int type)
637 if (!device || !acpi_driver_data(device)) 637 if (!device || !acpi_driver_data(device))
638 return -EINVAL; 638 return -EINVAL;
639 639
640 pr = (struct acpi_processor *)acpi_driver_data(device); 640 pr = acpi_driver_data(device);
641 641
642 if (pr->id >= NR_CPUS) { 642 if (pr->id >= NR_CPUS) {
643 kfree(pr); 643 kfree(pr);