diff options
author | Ryusuke Konishi <ryusuke@osrg.net> | 2007-02-27 00:13:02 -0500 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2007-02-27 00:36:00 -0500 |
commit | e047d1cfc3cd79f75e7dda9ffb28b456f6936864 (patch) | |
tree | a1cc4a16c47f331748743d5ce7defb97bb746f9e /drivers/char | |
parent | 01363220f5d23ef68276db8974e46a502e43d01d (diff) |
[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: Ryusuke Konishi <ryusuke@osrg.net>
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/agp/hp-agp.c | 2 | ||||
-rw-r--r-- | drivers/char/agp/i460-agp.c | 2 | ||||
-rw-r--r-- | drivers/char/agp/sgi-agp.c | 2 | ||||
-rw-r--r-- | drivers/char/agp/uninorth-agp.c | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/drivers/char/agp/hp-agp.c b/drivers/char/agp/hp-agp.c index 79f7c01db75a..bcdb149c8179 100644 --- a/drivers/char/agp/hp-agp.c +++ b/drivers/char/agp/hp-agp.c | |||
@@ -419,7 +419,7 @@ hp_zx1_enable (struct agp_bridge_data *bridge, u32 mode) | |||
419 | agp_device_command(command, (mode & AGP8X_MODE) != 0); | 419 | agp_device_command(command, (mode & AGP8X_MODE) != 0); |
420 | } | 420 | } |
421 | 421 | ||
422 | struct const agp_bridge_driver hp_zx1_driver = { | 422 | const struct agp_bridge_driver hp_zx1_driver = { |
423 | .owner = THIS_MODULE, | 423 | .owner = THIS_MODULE, |
424 | .size_type = FIXED_APER_SIZE, | 424 | .size_type = FIXED_APER_SIZE, |
425 | .configure = hp_zx1_configure, | 425 | .configure = hp_zx1_configure, |
diff --git a/drivers/char/agp/i460-agp.c b/drivers/char/agp/i460-agp.c index 1cde376a45ef..53354bf83af7 100644 --- a/drivers/char/agp/i460-agp.c +++ b/drivers/char/agp/i460-agp.c | |||
@@ -550,7 +550,7 @@ static unsigned long i460_mask_memory (struct agp_bridge_data *bridge, | |||
550 | | (((addr & ~((1 << I460_IO_PAGE_SHIFT) - 1)) & 0xfffff000) >> 12); | 550 | | (((addr & ~((1 << I460_IO_PAGE_SHIFT) - 1)) & 0xfffff000) >> 12); |
551 | } | 551 | } |
552 | 552 | ||
553 | struct const agp_bridge_driver intel_i460_driver = { | 553 | const struct agp_bridge_driver intel_i460_driver = { |
554 | .owner = THIS_MODULE, | 554 | .owner = THIS_MODULE, |
555 | .aperture_sizes = i460_sizes, | 555 | .aperture_sizes = i460_sizes, |
556 | .size_type = U8_APER_SIZE, | 556 | .size_type = U8_APER_SIZE, |
diff --git a/drivers/char/agp/sgi-agp.c b/drivers/char/agp/sgi-agp.c index e12773acf3df..ee8f50edde1b 100644 --- a/drivers/char/agp/sgi-agp.c +++ b/drivers/char/agp/sgi-agp.c | |||
@@ -247,7 +247,7 @@ static struct agp_bridge_data *sgi_tioca_find_bridge(struct pci_dev *pdev) | |||
247 | return bridge; | 247 | return bridge; |
248 | } | 248 | } |
249 | 249 | ||
250 | struct const agp_bridge_driver sgi_tioca_driver = { | 250 | const struct agp_bridge_driver sgi_tioca_driver = { |
251 | .owner = THIS_MODULE, | 251 | .owner = THIS_MODULE, |
252 | .size_type = U16_APER_SIZE, | 252 | .size_type = U16_APER_SIZE, |
253 | .configure = sgi_tioca_configure, | 253 | .configure = sgi_tioca_configure, |
diff --git a/drivers/char/agp/uninorth-agp.c b/drivers/char/agp/uninorth-agp.c index 292b4ad1ae37..91b062126a68 100644 --- a/drivers/char/agp/uninorth-agp.c +++ b/drivers/char/agp/uninorth-agp.c | |||
@@ -489,7 +489,7 @@ static const struct aper_size_info_32 u3_sizes[8] = | |||
489 | {4, 1024, 0, 1} | 489 | {4, 1024, 0, 1} |
490 | }; | 490 | }; |
491 | 491 | ||
492 | struct const agp_bridge_driver uninorth_agp_driver = { | 492 | const struct agp_bridge_driver uninorth_agp_driver = { |
493 | .owner = THIS_MODULE, | 493 | .owner = THIS_MODULE, |
494 | .aperture_sizes = (void *)uninorth_sizes, | 494 | .aperture_sizes = (void *)uninorth_sizes, |
495 | .size_type = U32_APER_SIZE, | 495 | .size_type = U32_APER_SIZE, |
@@ -514,7 +514,7 @@ struct const agp_bridge_driver uninorth_agp_driver = { | |||
514 | .cant_use_aperture = 1, | 514 | .cant_use_aperture = 1, |
515 | }; | 515 | }; |
516 | 516 | ||
517 | struct const agp_bridge_driver u3_agp_driver = { | 517 | const struct agp_bridge_driver u3_agp_driver = { |
518 | .owner = THIS_MODULE, | 518 | .owner = THIS_MODULE, |
519 | .aperture_sizes = (void *)u3_sizes, | 519 | .aperture_sizes = (void *)u3_sizes, |
520 | .size_type = U32_APER_SIZE, | 520 | .size_type = U32_APER_SIZE, |