aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/agp/amd64-agp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/agp/amd64-agp.c')
-rw-r--r--drivers/char/agp/amd64-agp.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/char/agp/amd64-agp.c b/drivers/char/agp/amd64-agp.c
index 061d46209b1a..d79d692d05b8 100644
--- a/drivers/char/agp/amd64-agp.c
+++ b/drivers/char/agp/amd64-agp.c
@@ -240,7 +240,7 @@ static const struct agp_bridge_driver amd_8151_driver = {
240}; 240};
241 241
242/* Some basic sanity checks for the aperture. */ 242/* Some basic sanity checks for the aperture. */
243static int __devinit agp_aperture_valid(u64 aper, u32 size) 243static int agp_aperture_valid(u64 aper, u32 size)
244{ 244{
245 if (!aperture_valid(aper, size, 32*1024*1024)) 245 if (!aperture_valid(aper, size, 32*1024*1024))
246 return 0; 246 return 0;
@@ -267,8 +267,7 @@ static int __devinit agp_aperture_valid(u64 aper, u32 size)
267 * to allocate that much memory. But at least error out cleanly instead of 267 * to allocate that much memory. But at least error out cleanly instead of
268 * crashing. 268 * crashing.
269 */ 269 */
270static __devinit int fix_northbridge(struct pci_dev *nb, struct pci_dev *agp, 270static int fix_northbridge(struct pci_dev *nb, struct pci_dev *agp, u16 cap)
271 u16 cap)
272{ 271{
273 u32 aper_low, aper_hi; 272 u32 aper_low, aper_hi;
274 u64 aper, nb_aper; 273 u64 aper, nb_aper;
@@ -326,7 +325,7 @@ static __devinit int fix_northbridge(struct pci_dev *nb, struct pci_dev *agp,
326 return 0; 325 return 0;
327} 326}
328 327
329static __devinit int cache_nbs(struct pci_dev *pdev, u32 cap_ptr) 328static int cache_nbs(struct pci_dev *pdev, u32 cap_ptr)
330{ 329{
331 int i; 330 int i;
332 331
@@ -352,7 +351,7 @@ static __devinit int cache_nbs(struct pci_dev *pdev, u32 cap_ptr)
352} 351}
353 352
354/* Handle AMD 8151 quirks */ 353/* Handle AMD 8151 quirks */
355static void __devinit amd8151_init(struct pci_dev *pdev, struct agp_bridge_data *bridge) 354static void amd8151_init(struct pci_dev *pdev, struct agp_bridge_data *bridge)
356{ 355{
357 char *revstring; 356 char *revstring;
358 357
@@ -390,7 +389,7 @@ static const struct aper_size_info_32 uli_sizes[7] =
390 {8, 2048, 1, 4}, 389 {8, 2048, 1, 4},
391 {4, 1024, 0, 3} 390 {4, 1024, 0, 3}
392}; 391};
393static int __devinit uli_agp_init(struct pci_dev *pdev) 392static int uli_agp_init(struct pci_dev *pdev)
394{ 393{
395 u32 httfea,baseaddr,enuscr; 394 u32 httfea,baseaddr,enuscr;
396 struct pci_dev *dev1; 395 struct pci_dev *dev1;
@@ -513,8 +512,8 @@ put:
513 return ret; 512 return ret;
514} 513}
515 514
516static int __devinit agp_amd64_probe(struct pci_dev *pdev, 515static int agp_amd64_probe(struct pci_dev *pdev,
517 const struct pci_device_id *ent) 516 const struct pci_device_id *ent)
518{ 517{
519 struct agp_bridge_data *bridge; 518 struct agp_bridge_data *bridge;
520 u8 cap_ptr; 519 u8 cap_ptr;