提交 89d17b96 编写于 作者: D Dave Jones

[AGPGART] Whitespace cleanups for ati-agp

Signed-off-by: NDave Jones <davej@redhat.com>
上级 25f42b6a
...@@ -41,7 +41,6 @@ static struct gatt_mask ati_generic_masks[] = ...@@ -41,7 +41,6 @@ static struct gatt_mask ati_generic_masks[] =
}; };
typedef struct _ati_page_map { typedef struct _ati_page_map {
unsigned long *real; unsigned long *real;
unsigned long __iomem *remapped; unsigned long __iomem *remapped;
...@@ -141,7 +140,8 @@ static int ati_create_gatt_pages(int nr_tables) ...@@ -141,7 +140,8 @@ static int ati_create_gatt_pages(int nr_tables)
ati_generic_private.num_tables = nr_tables; ati_generic_private.num_tables = nr_tables;
ati_generic_private.gatt_pages = tables; ati_generic_private.gatt_pages = tables;
if (retval != 0) ati_free_gatt_pages(); if (retval != 0)
ati_free_gatt_pages();
return retval; return retval;
} }
...@@ -321,9 +321,9 @@ static int ati_remove_memory(struct agp_memory * mem, off_t pg_start, ...@@ -321,9 +321,9 @@ static int ati_remove_memory(struct agp_memory * mem, off_t pg_start,
unsigned long __iomem *cur_gatt; unsigned long __iomem *cur_gatt;
unsigned long addr; unsigned long addr;
if (type != 0 || mem->type != 0) { if (type != 0 || mem->type != 0)
return -EINVAL; return -EINVAL;
}
for (i = pg_start; i < (mem->page_count + pg_start); i++) { for (i = pg_start; i < (mem->page_count + pg_start); i++) {
addr = (i * PAGE_SIZE) + agp_bridge->gart_bus_addr; addr = (i * PAGE_SIZE) + agp_bridge->gart_bus_addr;
cur_gatt = GET_GATT(addr); cur_gatt = GET_GATT(addr);
...@@ -505,7 +505,6 @@ static int __devinit agp_ati_probe(struct pci_dev *pdev, ...@@ -505,7 +505,6 @@ static int __devinit agp_ati_probe(struct pci_dev *pdev,
bridge->driver = &ati_generic_bridge; bridge->driver = &ati_generic_bridge;
printk(KERN_INFO PFX "Detected Ati %s chipset\n", printk(KERN_INFO PFX "Detected Ati %s chipset\n",
devs[j].chipset_name); devs[j].chipset_name);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册