Commit 23d4ae4f authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[AGPGART] Fix sparse iomem warnings in Intel MCH driver.

Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent f37d606e
...@@ -84,7 +84,7 @@ static struct aper_size_info_fixed intel_i830_sizes[] = ...@@ -84,7 +84,7 @@ static struct aper_size_info_fixed intel_i830_sizes[] =
static struct _intel_i830_private { static struct _intel_i830_private {
struct pci_dev *i830_dev; /* device one */ struct pci_dev *i830_dev; /* device one */
volatile u8 *registers; volatile u8 __iomem *registers;
int gtt_entries; int gtt_entries;
} intel_i830_private; } intel_i830_private;
...@@ -172,7 +172,7 @@ static int intel_i830_create_gatt_table(void) ...@@ -172,7 +172,7 @@ static int intel_i830_create_gatt_table(void)
pci_read_config_dword(intel_i830_private.i830_dev,I810_MMADDR,&temp); pci_read_config_dword(intel_i830_private.i830_dev,I810_MMADDR,&temp);
temp &= 0xfff80000; temp &= 0xfff80000;
intel_i830_private.registers = (volatile u8 *) ioremap(temp,128 * 4096); intel_i830_private.registers = (volatile u8 __iomem*) ioremap(temp,128 * 4096);
if (!intel_i830_private.registers) if (!intel_i830_private.registers)
return (-ENOMEM); return (-ENOMEM);
...@@ -255,7 +255,7 @@ static int intel_i830_configure(void) ...@@ -255,7 +255,7 @@ static int intel_i830_configure(void)
static void intel_i830_cleanup(void) static void intel_i830_cleanup(void)
{ {
iounmap((void *) intel_i830_private.registers); iounmap((void __iomem *) intel_i830_private.registers);
} }
static int intel_i830_insert_entries(struct agp_memory *mem,off_t pg_start, static int intel_i830_insert_entries(struct agp_memory *mem,off_t pg_start,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment