Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362875
b: refs/heads/master
c: ce15d87
h: refs/heads/master
i:
  362873: 343350c
  362871: 3b27d6c
v: v3
  • Loading branch information
Jiang Liu authored and Bjorn Helgaas committed Apr 12, 2013
1 parent a7dec49 commit 281163c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3a0e40beefc20852191ed65d53e1b82d95ac11b8
refs/heads/master: ce15d873d05ebf3bf38579c4e0252140e28f1781
4 changes: 0 additions & 4 deletions trunk/drivers/pci/hotplug/acpiphp.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,6 @@ struct acpiphp_attention_info
#define ACPI_PCI_HOST_HID "PNP0A03"

/* ACPI _STA method value (ignore bit 4; battery present) */
#define ACPI_STA_PRESENT (0x00000001)
#define ACPI_STA_ENABLED (0x00000002)
#define ACPI_STA_SHOW_IN_UI (0x00000004)
#define ACPI_STA_FUNCTIONING (0x00000008)
#define ACPI_STA_ALL (0x0000000f)

/* bridge flags */
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/pci/hotplug/acpiphp_glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ static int add_bridge(struct acpi_pci_root *root)
dbg("%s: _STA evaluation failure\n", __func__);
return 0;
}
if ((tmp & ACPI_STA_FUNCTIONING) == 0)
if ((tmp & ACPI_STA_DEVICE_FUNCTIONING) == 0)
/* don't register this object */
return 0;
}
Expand Down Expand Up @@ -1389,7 +1389,7 @@ u8 acpiphp_get_latch_status(struct acpiphp_slot *slot)

sta = get_slot_status(slot);

return (sta & ACPI_STA_SHOW_IN_UI) ? 0 : 1;
return (sta & ACPI_STA_DEVICE_UI) ? 0 : 1;
}


Expand Down

0 comments on commit 281163c

Please sign in to comment.