diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-06-22 22:11:56 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-06-22 22:11:56 -0400 |
commit | 71d530cd1b6d97094481002a04c77fea1c8e1c22 (patch) | |
tree | e786da7145d83c19a594adf76ed90d52c51058b1 /drivers/char/agp/uninorth-agp.c | |
parent | d7a80dad2fe19a2b8c119c8e9cba605474a75a2b (diff) | |
parent | d588fcbe5a7ba8bba2cebf7799ab2d573717a806 (diff) |
Merge branch 'master' into upstream
Conflicts:
drivers/scsi/libata-core.c
drivers/scsi/libata-scsi.c
include/linux/pci_ids.h
Diffstat (limited to 'drivers/char/agp/uninorth-agp.c')
-rw-r--r-- | drivers/char/agp/uninorth-agp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/agp/uninorth-agp.c b/drivers/char/agp/uninorth-agp.c index 9846defbddb4..1de1b12043bf 100644 --- a/drivers/char/agp/uninorth-agp.c +++ b/drivers/char/agp/uninorth-agp.c | |||
@@ -329,7 +329,7 @@ static int agp_uninorth_suspend(struct pci_dev *pdev) | |||
329 | /* turn off AGP on the bridge */ | 329 | /* turn off AGP on the bridge */ |
330 | agp = pci_find_capability(pdev, PCI_CAP_ID_AGP); | 330 | agp = pci_find_capability(pdev, PCI_CAP_ID_AGP); |
331 | pci_read_config_dword(pdev, agp + PCI_AGP_COMMAND, &cmd); | 331 | pci_read_config_dword(pdev, agp + PCI_AGP_COMMAND, &cmd); |
332 | bridge->dev_private_data = (void *)cmd; | 332 | bridge->dev_private_data = (void *)(long)cmd; |
333 | if (cmd & PCI_AGP_COMMAND_AGP) { | 333 | if (cmd & PCI_AGP_COMMAND_AGP) { |
334 | printk("uninorth-agp: disabling AGP on bridge %s\n", | 334 | printk("uninorth-agp: disabling AGP on bridge %s\n", |
335 | pci_name(pdev)); | 335 | pci_name(pdev)); |
@@ -351,7 +351,7 @@ static int agp_uninorth_resume(struct pci_dev *pdev) | |||
351 | if (bridge == NULL) | 351 | if (bridge == NULL) |
352 | return -ENODEV; | 352 | return -ENODEV; |
353 | 353 | ||
354 | command = (u32)bridge->dev_private_data; | 354 | command = (long)bridge->dev_private_data; |
355 | bridge->dev_private_data = NULL; | 355 | bridge->dev_private_data = NULL; |
356 | if (!(command & PCI_AGP_COMMAND_AGP)) | 356 | if (!(command & PCI_AGP_COMMAND_AGP)) |
357 | return 0; | 357 | return 0; |