diff options
Diffstat (limited to 'drivers/acpi/pci_link.c')
-rw-r--r-- | drivers/acpi/pci_link.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c index d53bd9878ca2..812d733fe816 100644 --- a/drivers/acpi/pci_link.c +++ b/drivers/acpi/pci_link.c | |||
@@ -103,7 +103,7 @@ DEFINE_MUTEX(acpi_link_lock); | |||
103 | static acpi_status | 103 | static acpi_status |
104 | acpi_pci_link_check_possible(struct acpi_resource *resource, void *context) | 104 | acpi_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); |