diff options
author | Andrew Morton <akpm@osdl.org> | 2006-06-01 23:19:35 -0400 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2006-06-08 22:41:16 -0400 |
commit | b07cd5181f3c8de8c28fdac7dbeec9e4220b8037 (patch) | |
tree | 480bdcd2ad5129bfd9e1ec216525a48a92eb3e51 /drivers/char/agp/uninorth-agp.c | |
parent | 01af2fac9ea76513e2fba689ad580f985f32a8c3 (diff) |
[AGPGART] uninorth-agp warning fixes
drivers/char/agp/uninorth-agp.c: In function `agp_uninorth_suspend':
drivers/char/agp/uninorth-agp.c:332: warning: cast to pointer from integer of different size
drivers/char/agp/uninorth-agp.c: In function `agp_uninorth_resume':
drivers/char/agp/uninorth-agp.c:354: warning: cast from pointer to integer of different size
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Dave Jones <davej@redhat.com>
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; |