aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-10-23 13:20:36 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-23 13:20:36 -0400
commit765426e8ee4c0ab2bc9d44951f4865b8494cdbd0 (patch)
tree2b46ab8953eff175c8d3474a9754c1ab1394e4de /drivers/pci
parent36ec891895020f3bc9953c8b11d079c6d77d76bd (diff)
parent898b054f3eec5921320ae8614b5bdd7b07ea5b43 (diff)
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6
* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (123 commits) dock: make dock driver not a module ACPI: fix ia64 build warning ACPI: hack around sysfs warning with link order ACPI suspend: fix build warning when CONFIG_ACPI_SLEEP=n intel_menlo: fix build warning panasonic-laptop: fix build ACPICA: Update version to 20080926 ACPICA: Add support for zero-length buffer-to-string conversions ACPICA: New: Validation for predefined ACPI methods/objects ACPICA: Fix for implicit return compatibility ACPICA: Fixed a couple memory leaks associated with "implicit return" ACPICA: Optimize buffer allocation procedure ACPICA: Fix possible memory leak, error exit path ACPICA: Fix fault after mem allocation failure in AML parser ACPICA: Remove unused ACPI register bit definition ACPICA: Update version to 20080829 ACPICA: Fix possible memory leak in acpi_ns_get_external_pathname ACPICA: Cleanup for internal Reference Object ACPICA: Update comments - no functional changes ACPICA: Update for Reference ACPI_OPERAND_OBJECT ...
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/hotplug/acpiphp_glue.c20
-rw-r--r--drivers/pci/hotplug/acpiphp_ibm.c2
-rw-r--r--drivers/pci/hotplug/sgi_hotplug.c4
3 files changed, 14 insertions, 12 deletions
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c
index a3e4705dd8f0..955aae4071f7 100644
--- a/drivers/pci/hotplug/acpiphp_glue.c
+++ b/drivers/pci/hotplug/acpiphp_glue.c
@@ -169,7 +169,9 @@ static int post_dock_fixups(struct notifier_block *nb, unsigned long val,
169} 169}
170 170
171 171
172 172static struct acpi_dock_ops acpiphp_dock_ops = {
173 .handler = handle_hotplug_event_func,
174};
173 175
174/* callback routine to register each ACPI PCI slot object */ 176/* callback routine to register each ACPI PCI slot object */
175static acpi_status 177static acpi_status
@@ -180,7 +182,7 @@ register_slot(acpi_handle handle, u32 lvl, void *context, void **rv)
180 struct acpiphp_func *newfunc; 182 struct acpiphp_func *newfunc;
181 acpi_handle tmp; 183 acpi_handle tmp;
182 acpi_status status = AE_OK; 184 acpi_status status = AE_OK;
183 unsigned long adr, sun; 185 unsigned long long adr, sun;
184 int device, function, retval; 186 int device, function, retval;
185 187
186 status = acpi_evaluate_integer(handle, "_ADR", NULL, &adr); 188 status = acpi_evaluate_integer(handle, "_ADR", NULL, &adr);
@@ -285,7 +287,7 @@ register_slot(acpi_handle handle, u32 lvl, void *context, void **rv)
285 */ 287 */
286 newfunc->flags &= ~FUNC_HAS_EJ0; 288 newfunc->flags &= ~FUNC_HAS_EJ0;
287 if (register_hotplug_dock_device(handle, 289 if (register_hotplug_dock_device(handle,
288 handle_hotplug_event_func, newfunc)) 290 &acpiphp_dock_ops, newfunc))
289 dbg("failed to register dock device\n"); 291 dbg("failed to register dock device\n");
290 292
291 /* we need to be notified when dock events happen 293 /* we need to be notified when dock events happen
@@ -528,7 +530,7 @@ find_p2p_bridge(acpi_handle handle, u32 lvl, void *context, void **rv)
528{ 530{
529 acpi_status status; 531 acpi_status status;
530 acpi_handle dummy_handle; 532 acpi_handle dummy_handle;
531 unsigned long tmp; 533 unsigned long long tmp;
532 int device, function; 534 int device, function;
533 struct pci_dev *dev; 535 struct pci_dev *dev;
534 struct pci_bus *pci_bus = context; 536 struct pci_bus *pci_bus = context;
@@ -573,7 +575,7 @@ find_p2p_bridge(acpi_handle handle, u32 lvl, void *context, void **rv)
573static int add_bridge(acpi_handle handle) 575static int add_bridge(acpi_handle handle)
574{ 576{
575 acpi_status status; 577 acpi_status status;
576 unsigned long tmp; 578 unsigned long long tmp;
577 int seg, bus; 579 int seg, bus;
578 acpi_handle dummy_handle; 580 acpi_handle dummy_handle;
579 struct pci_bus *pci_bus; 581 struct pci_bus *pci_bus;
@@ -767,7 +769,7 @@ static int get_gsi_base(acpi_handle handle, u32 *gsi_base)
767{ 769{
768 acpi_status status; 770 acpi_status status;
769 int result = -1; 771 int result = -1;
770 unsigned long gsb; 772 unsigned long long gsb;
771 struct acpi_buffer buffer = {ACPI_ALLOCATE_BUFFER, NULL}; 773 struct acpi_buffer buffer = {ACPI_ALLOCATE_BUFFER, NULL};
772 union acpi_object *obj; 774 union acpi_object *obj;
773 void *table; 775 void *table;
@@ -808,7 +810,7 @@ static acpi_status
808ioapic_add(acpi_handle handle, u32 lvl, void *context, void **rv) 810ioapic_add(acpi_handle handle, u32 lvl, void *context, void **rv)
809{ 811{
810 acpi_status status; 812 acpi_status status;
811 unsigned long sta; 813 unsigned long long sta;
812 acpi_handle tmp; 814 acpi_handle tmp;
813 struct pci_dev *pdev; 815 struct pci_dev *pdev;
814 u32 gsi_base; 816 u32 gsi_base;
@@ -872,7 +874,7 @@ static acpi_status
872ioapic_remove(acpi_handle handle, u32 lvl, void *context, void **rv) 874ioapic_remove(acpi_handle handle, u32 lvl, void *context, void **rv)
873{ 875{
874 acpi_status status; 876 acpi_status status;
875 unsigned long sta; 877 unsigned long long sta;
876 acpi_handle tmp; 878 acpi_handle tmp;
877 u32 gsi_base; 879 u32 gsi_base;
878 struct acpiphp_ioapic *pos, *n, *ioapic = NULL; 880 struct acpiphp_ioapic *pos, *n, *ioapic = NULL;
@@ -1264,7 +1266,7 @@ static int disable_device(struct acpiphp_slot *slot)
1264static unsigned int get_slot_status(struct acpiphp_slot *slot) 1266static unsigned int get_slot_status(struct acpiphp_slot *slot)
1265{ 1267{
1266 acpi_status status; 1268 acpi_status status;
1267 unsigned long sta = 0; 1269 unsigned long long sta = 0;
1268 u32 dvid; 1270 u32 dvid;
1269 struct list_head *l; 1271 struct list_head *l;
1270 struct acpiphp_func *func; 1272 struct acpiphp_func *func;
diff --git a/drivers/pci/hotplug/acpiphp_ibm.c b/drivers/pci/hotplug/acpiphp_ibm.c
index 2b7c45e39370..b291ee68b4f1 100644
--- a/drivers/pci/hotplug/acpiphp_ibm.c
+++ b/drivers/pci/hotplug/acpiphp_ibm.c
@@ -183,7 +183,7 @@ static int ibm_set_attention_status(struct hotplug_slot *slot, u8 status)
183 union acpi_object args[2]; 183 union acpi_object args[2];
184 struct acpi_object_list params = { .pointer = args, .count = 2 }; 184 struct acpi_object_list params = { .pointer = args, .count = 2 };
185 acpi_status stat; 185 acpi_status stat;
186 unsigned long rc; 186 unsigned long long rc;
187 union apci_descriptor *ibm_slot; 187 union apci_descriptor *ibm_slot;
188 188
189 ibm_slot = ibm_slot_from_id(hpslot_to_sun(slot)); 189 ibm_slot = ibm_slot_from_id(hpslot_to_sun(slot));
diff --git a/drivers/pci/hotplug/sgi_hotplug.c b/drivers/pci/hotplug/sgi_hotplug.c
index d748698e31a2..3eee70928d45 100644
--- a/drivers/pci/hotplug/sgi_hotplug.c
+++ b/drivers/pci/hotplug/sgi_hotplug.c
@@ -413,7 +413,7 @@ static int enable_slot(struct hotplug_slot *bss_hotplug_slot)
413 /* 413 /*
414 * Add the slot's devices to the ACPI infrastructure */ 414 * Add the slot's devices to the ACPI infrastructure */
415 if (SN_ACPI_BASE_SUPPORT() && ssdt) { 415 if (SN_ACPI_BASE_SUPPORT() && ssdt) {
416 unsigned long adr; 416 unsigned long long adr;
417 struct acpi_device *pdevice; 417 struct acpi_device *pdevice;
418 struct acpi_device *device; 418 struct acpi_device *device;
419 acpi_handle phandle; 419 acpi_handle phandle;
@@ -505,7 +505,7 @@ static int disable_slot(struct hotplug_slot *bss_hotplug_slot)
505 /* free the ACPI resources for the slot */ 505 /* free the ACPI resources for the slot */
506 if (SN_ACPI_BASE_SUPPORT() && 506 if (SN_ACPI_BASE_SUPPORT() &&
507 PCI_CONTROLLER(slot->pci_bus)->acpi_handle) { 507 PCI_CONTROLLER(slot->pci_bus)->acpi_handle) {
508 unsigned long adr; 508 unsigned long long adr;
509 struct acpi_device *device; 509 struct acpi_device *device;
510 acpi_handle phandle; 510 acpi_handle phandle;
511 acpi_handle chandle = NULL; 511 acpi_handle chandle = NULL;