Commit e047d1cf authored by Ryusuke Konishi's avatar Ryusuke Konishi Committed by Dave Jones

[AGPGART] fix compile errors

This fixes the following compile failures of agpgart drivers.
These errors were inserted by the recent AGPGART constification patch.

drivers/char/agp/uninorth-agp.c:492: error: expected '{' before 'const'
drivers/char/agp/uninorth-agp.c:517: error: expected '{' before 'const'
drivers/char/agp/uninorth-agp.c: In function 'agp_uninorth_probe':
drivers/char/agp/uninorth-agp.c:634: error: 'u3_agp_driver' undeclared (first use in this function)
drivers/char/agp/uninorth-agp.c:634: error: (Each undeclared identifier is reported only once
drivers/char/agp/uninorth-agp.c:634: error: for each function it appears in.)
drivers/char/agp/uninorth-agp.c:636: error: 'uninorth_agp_driver' undeclared (first use in this function)
Signed-off-by: default avatarRyusuke Konishi <ryusuke@osrg.net>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 01363220
...@@ -419,7 +419,7 @@ hp_zx1_enable (struct agp_bridge_data *bridge, u32 mode) ...@@ -419,7 +419,7 @@ hp_zx1_enable (struct agp_bridge_data *bridge, u32 mode)
agp_device_command(command, (mode & AGP8X_MODE) != 0); agp_device_command(command, (mode & AGP8X_MODE) != 0);
} }
struct const agp_bridge_driver hp_zx1_driver = { const struct agp_bridge_driver hp_zx1_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.size_type = FIXED_APER_SIZE, .size_type = FIXED_APER_SIZE,
.configure = hp_zx1_configure, .configure = hp_zx1_configure,
......
...@@ -550,7 +550,7 @@ static unsigned long i460_mask_memory (struct agp_bridge_data *bridge, ...@@ -550,7 +550,7 @@ static unsigned long i460_mask_memory (struct agp_bridge_data *bridge,
| (((addr & ~((1 << I460_IO_PAGE_SHIFT) - 1)) & 0xfffff000) >> 12); | (((addr & ~((1 << I460_IO_PAGE_SHIFT) - 1)) & 0xfffff000) >> 12);
} }
struct const agp_bridge_driver intel_i460_driver = { const struct agp_bridge_driver intel_i460_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.aperture_sizes = i460_sizes, .aperture_sizes = i460_sizes,
.size_type = U8_APER_SIZE, .size_type = U8_APER_SIZE,
......
...@@ -247,7 +247,7 @@ static struct agp_bridge_data *sgi_tioca_find_bridge(struct pci_dev *pdev) ...@@ -247,7 +247,7 @@ static struct agp_bridge_data *sgi_tioca_find_bridge(struct pci_dev *pdev)
return bridge; return bridge;
} }
struct const agp_bridge_driver sgi_tioca_driver = { const struct agp_bridge_driver sgi_tioca_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.size_type = U16_APER_SIZE, .size_type = U16_APER_SIZE,
.configure = sgi_tioca_configure, .configure = sgi_tioca_configure,
......
...@@ -489,7 +489,7 @@ static const struct aper_size_info_32 u3_sizes[8] = ...@@ -489,7 +489,7 @@ static const struct aper_size_info_32 u3_sizes[8] =
{4, 1024, 0, 1} {4, 1024, 0, 1}
}; };
struct const agp_bridge_driver uninorth_agp_driver = { const struct agp_bridge_driver uninorth_agp_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.aperture_sizes = (void *)uninorth_sizes, .aperture_sizes = (void *)uninorth_sizes,
.size_type = U32_APER_SIZE, .size_type = U32_APER_SIZE,
...@@ -514,7 +514,7 @@ struct const agp_bridge_driver uninorth_agp_driver = { ...@@ -514,7 +514,7 @@ struct const agp_bridge_driver uninorth_agp_driver = {
.cant_use_aperture = 1, .cant_use_aperture = 1,
}; };
struct const agp_bridge_driver u3_agp_driver = { const struct agp_bridge_driver u3_agp_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.aperture_sizes = (void *)u3_sizes, .aperture_sizes = (void *)u3_sizes,
.size_type = U32_APER_SIZE, .size_type = U32_APER_SIZE,
......
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