Commit 3f0f3c27 authored by Bjorn Helgaas's avatar Bjorn Helgaas Committed by Len Brown

ACPI: PCI: whitespace and useless initialization cleanup

This patch makes function declarations consistent throughout
the file and removes some unnecessary initializations.
Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 74f82af1
...@@ -149,8 +149,8 @@ static struct prt_quirk prt_quirks[] = { ...@@ -149,8 +149,8 @@ static struct prt_quirk prt_quirks[] = {
"\\_SB_.PCI0.LNK3"}, "\\_SB_.PCI0.LNK3"},
}; };
static void static void do_prt_fixups(struct acpi_prt_entry *entry,
do_prt_fixups(struct acpi_prt_entry *entry, struct acpi_pci_routing_table *prt) struct acpi_pci_routing_table *prt)
{ {
int i; int i;
struct prt_quirk *quirk; struct prt_quirk *quirk;
...@@ -180,9 +180,8 @@ do_prt_fixups(struct acpi_prt_entry *entry, struct acpi_pci_routing_table *prt) ...@@ -180,9 +180,8 @@ do_prt_fixups(struct acpi_prt_entry *entry, struct acpi_pci_routing_table *prt)
} }
} }
static int static int acpi_pci_irq_add_entry(acpi_handle handle, int segment, int bus,
acpi_pci_irq_add_entry(acpi_handle handle, struct acpi_pci_routing_table *prt)
int segment, int bus, struct acpi_pci_routing_table *prt)
{ {
struct acpi_prt_entry *entry; struct acpi_prt_entry *entry;
...@@ -299,8 +298,7 @@ void acpi_pci_irq_del_prt(int segment, int bus) ...@@ -299,8 +298,7 @@ void acpi_pci_irq_del_prt(int segment, int bus)
/* -------------------------------------------------------------------------- /* --------------------------------------------------------------------------
PCI Interrupt Routing Support PCI Interrupt Routing Support
-------------------------------------------------------------------------- */ -------------------------------------------------------------------------- */
static struct acpi_prt_entry * static struct acpi_prt_entry *acpi_pci_irq_lookup(struct pci_dev *dev, int pin)
acpi_pci_irq_lookup(struct pci_dev *dev, int pin)
{ {
struct acpi_prt_entry *entry; struct acpi_prt_entry *entry;
struct pci_dev *bridge; struct pci_dev *bridge;
...@@ -351,24 +349,17 @@ acpi_pci_irq_lookup(struct pci_dev *dev, int pin) ...@@ -351,24 +349,17 @@ acpi_pci_irq_lookup(struct pci_dev *dev, int pin)
return NULL; return NULL;
} }
/*
* acpi_pci_irq_enable
* success: return 0
* failure: return < 0
*/
int acpi_pci_irq_enable(struct pci_dev *dev) int acpi_pci_irq_enable(struct pci_dev *dev)
{ {
struct acpi_prt_entry *entry; struct acpi_prt_entry *entry;
int gsi = 0; int gsi;
u8 pin = 0; u8 pin;
int triggering = ACPI_LEVEL_SENSITIVE; int triggering = ACPI_LEVEL_SENSITIVE;
int polarity = ACPI_ACTIVE_LOW; int polarity = ACPI_ACTIVE_LOW;
char *link = NULL; char *link = NULL;
char link_desc[16]; char link_desc[16];
int rc; int rc;
pin = dev->pin; pin = dev->pin;
if (!pin) { if (!pin) {
ACPI_DEBUG_PRINT((ACPI_DB_INFO, ACPI_DEBUG_PRINT((ACPI_DB_INFO,
...@@ -446,9 +437,8 @@ void __attribute__ ((weak)) acpi_unregister_gsi(u32 i) ...@@ -446,9 +437,8 @@ void __attribute__ ((weak)) acpi_unregister_gsi(u32 i)
void acpi_pci_irq_disable(struct pci_dev *dev) void acpi_pci_irq_disable(struct pci_dev *dev)
{ {
struct acpi_prt_entry *entry; struct acpi_prt_entry *entry;
int gsi = 0; int gsi;
u8 pin = 0; u8 pin;
pin = dev->pin; pin = dev->pin;
if (!pin) if (!pin)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment