aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/pci_link.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@linux01.gwdg.de>2006-09-30 18:28:50 -0400
committerLen Brown <len.brown@intel.com>2006-10-14 01:51:07 -0400
commit50dd096973f1d95aa03c6a6d9e148d706b62b68e (patch)
tree1f047b9c574672c133559922af5d4aee2816b9ae /drivers/acpi/pci_link.c
parentb4bd8c66435a8cdf8c90334fb3b517a23ff2ab95 (diff)
ACPI: Remove unnecessary from/to-void* and to-void casts in drivers/acpi
Signed-off-by: Jan Engelhardt <jengelh@gmx.de> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/pci_link.c')
-rw-r--r--drivers/acpi/pci_link.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c
index 7f3e7e77e794..6718198bfae7 100644
--- a/drivers/acpi/pci_link.c
+++ b/drivers/acpi/pci_link.c
@@ -103,7 +103,7 @@ DEFINE_MUTEX(acpi_link_lock);
103static acpi_status 103static acpi_status
104acpi_pci_link_check_possible(struct acpi_resource *resource, void *context) 104acpi_pci_link_check_possible(struct acpi_resource *resource, void *context)
105{ 105{
106 struct acpi_pci_link *link = (struct acpi_pci_link *)context; 106 struct acpi_pci_link *link = context;
107 u32 i = 0; 107 u32 i = 0;
108 108
109 109
@@ -613,7 +613,7 @@ acpi_pci_link_allocate_irq(acpi_handle handle,
613 return -1; 613 return -1;
614 } 614 }
615 615
616 link = (struct acpi_pci_link *)acpi_driver_data(device); 616 link = acpi_driver_data(device);
617 if (!link) { 617 if (!link) {
618 printk(KERN_ERR PREFIX "Invalid link context\n"); 618 printk(KERN_ERR PREFIX "Invalid link context\n");
619 return -1; 619 return -1;
@@ -668,7 +668,7 @@ int acpi_pci_link_free_irq(acpi_handle handle)
668 return -1; 668 return -1;
669 } 669 }
670 670
671 link = (struct acpi_pci_link *)acpi_driver_data(device); 671 link = acpi_driver_data(device);
672 if (!link) { 672 if (!link) {
673 printk(KERN_ERR PREFIX "Invalid link context\n"); 673 printk(KERN_ERR PREFIX "Invalid link context\n");
674 return -1; 674 return -1;
@@ -808,7 +808,7 @@ static int acpi_pci_link_remove(struct acpi_device *device, int type)
808 if (!device || !acpi_driver_data(device)) 808 if (!device || !acpi_driver_data(device))
809 return -EINVAL; 809 return -EINVAL;
810 810
811 link = (struct acpi_pci_link *)acpi_driver_data(device); 811 link = acpi_driver_data(device);
812 812
813 mutex_lock(&acpi_link_lock); 813 mutex_lock(&acpi_link_lock);
814 list_del(&link->node); 814 list_del(&link->node);