Commit bfd189a8 authored by Linus Torvalds's avatar Linus Torvalds

Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/agpgart

* master.kernel.org:/pub/scm/linux/kernel/git/davej/agpgart:
  [AGPGART] alpha-agp warning fix
  [AGPGART] uninorth-agp warning fixes
  [AGPGART] Remove pointless initialisation in intel-agp
  [AGPGART] Remove pointless code from agp_generic_create_gatt_table()
parents bbf70132 81c24669
...@@ -46,12 +46,6 @@ struct vm_operations_struct alpha_core_agp_vm_ops = { ...@@ -46,12 +46,6 @@ struct vm_operations_struct alpha_core_agp_vm_ops = {
}; };
static int alpha_core_agp_nop(void)
{
/* just return success */
return 0;
}
static int alpha_core_agp_fetch_size(void) static int alpha_core_agp_fetch_size(void)
{ {
return alpha_core_agp_sizes[0].size; return alpha_core_agp_sizes[0].size;
...@@ -120,6 +114,11 @@ static int alpha_core_agp_remove_memory(struct agp_memory *mem, off_t pg_start, ...@@ -120,6 +114,11 @@ static int alpha_core_agp_remove_memory(struct agp_memory *mem, off_t pg_start,
return status; return status;
} }
static int alpha_core_agp_create_free_gatt_table(struct agp_bridge_data *a)
{
return 0;
}
struct agp_bridge_driver alpha_core_agp_driver = { struct agp_bridge_driver alpha_core_agp_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.aperture_sizes = alpha_core_agp_sizes, .aperture_sizes = alpha_core_agp_sizes,
...@@ -135,8 +134,8 @@ struct agp_bridge_driver alpha_core_agp_driver = { ...@@ -135,8 +134,8 @@ struct agp_bridge_driver alpha_core_agp_driver = {
.tlb_flush = alpha_core_agp_tlbflush, .tlb_flush = alpha_core_agp_tlbflush,
.mask_memory = agp_generic_mask_memory, .mask_memory = agp_generic_mask_memory,
.cache_flush = global_cache_flush, .cache_flush = global_cache_flush,
.create_gatt_table = alpha_core_agp_nop, .create_gatt_table = alpha_core_agp_create_free_gatt_table,
.free_gatt_table = alpha_core_agp_nop, .free_gatt_table = alpha_core_agp_create_free_gatt_table,
.insert_memory = alpha_core_agp_insert_memory, .insert_memory = alpha_core_agp_insert_memory,
.remove_memory = alpha_core_agp_remove_memory, .remove_memory = alpha_core_agp_remove_memory,
.alloc_by_type = agp_generic_alloc_by_type, .alloc_by_type = agp_generic_alloc_by_type,
......
...@@ -809,12 +809,10 @@ int agp_generic_create_gatt_table(struct agp_bridge_data *bridge) ...@@ -809,12 +809,10 @@ int agp_generic_create_gatt_table(struct agp_bridge_data *bridge)
case U32_APER_SIZE: case U32_APER_SIZE:
bridge->current_size = A_IDX32(bridge); bridge->current_size = A_IDX32(bridge);
break; break;
/* This case will never really happen. */ /* These cases will never really happen. */
case FIXED_APER_SIZE: case FIXED_APER_SIZE:
case LVL2_APER_SIZE: case LVL2_APER_SIZE:
default: default:
bridge->current_size =
bridge->current_size;
break; break;
} }
temp = bridge->current_size; temp = bridge->current_size;
......
...@@ -736,7 +736,7 @@ static int intel_i915_remove_entries(struct agp_memory *mem,off_t pg_start, ...@@ -736,7 +736,7 @@ static int intel_i915_remove_entries(struct agp_memory *mem,off_t pg_start,
static int intel_i915_fetch_size(void) static int intel_i915_fetch_size(void)
{ {
struct aper_size_info_fixed *values; struct aper_size_info_fixed *values;
u32 temp, offset = 0; u32 temp, offset;
#define I915_256MB_ADDRESS_MASK (1<<27) #define I915_256MB_ADDRESS_MASK (1<<27)
......
...@@ -329,7 +329,7 @@ static int agp_uninorth_suspend(struct pci_dev *pdev) ...@@ -329,7 +329,7 @@ static int agp_uninorth_suspend(struct pci_dev *pdev)
/* turn off AGP on the bridge */ /* turn off AGP on the bridge */
agp = pci_find_capability(pdev, PCI_CAP_ID_AGP); agp = pci_find_capability(pdev, PCI_CAP_ID_AGP);
pci_read_config_dword(pdev, agp + PCI_AGP_COMMAND, &cmd); pci_read_config_dword(pdev, agp + PCI_AGP_COMMAND, &cmd);
bridge->dev_private_data = (void *)cmd; bridge->dev_private_data = (void *)(long)cmd;
if (cmd & PCI_AGP_COMMAND_AGP) { if (cmd & PCI_AGP_COMMAND_AGP) {
printk("uninorth-agp: disabling AGP on bridge %s\n", printk("uninorth-agp: disabling AGP on bridge %s\n",
pci_name(pdev)); pci_name(pdev));
...@@ -351,7 +351,7 @@ static int agp_uninorth_resume(struct pci_dev *pdev) ...@@ -351,7 +351,7 @@ static int agp_uninorth_resume(struct pci_dev *pdev)
if (bridge == NULL) if (bridge == NULL)
return -ENODEV; return -ENODEV;
command = (u32)bridge->dev_private_data; command = (long)bridge->dev_private_data;
bridge->dev_private_data = NULL; bridge->dev_private_data = NULL;
if (!(command & PCI_AGP_COMMAND_AGP)) if (!(command & PCI_AGP_COMMAND_AGP))
return 0; return 0;
......
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