dect
/
linux-2.6
Archived
13
0
Fork 0

agp: Use u32 __iomem annotation to silence sparse warning.

Replace "void *" by "u32 __iomem *" to silence sparse warning.

Signed-off-by: Santosh Nayak <santoshprasadnayak@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Santosh Nayak 2012-04-05 11:31:44 +05:30 committed by Dave Airlie
parent 971ca47178
commit ae85226ebe
1 changed files with 1 additions and 1 deletions

View File

@ -958,7 +958,7 @@ int agp_generic_create_gatt_table(struct agp_bridge_data *bridge)
if (set_memory_uc((unsigned long)table, 1 << page_order))
printk(KERN_WARNING "Could not set GATT table memory to UC!\n");
bridge->gatt_table = (void *)table;
bridge->gatt_table = (u32 __iomem *)table;
#else
bridge->gatt_table = ioremap_nocache(virt_to_phys(table),
(PAGE_SIZE * (1 << page_order)));