diff options
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; |