Commit 5bf174b7 authored by Pavel Machek's avatar Pavel Machek Committed by Linus Torvalds

[PATCH] radeonfb x86_64 fix

Fix radeonfb and aty128fb on x86_64 by using the correct ifdef.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 6fe4720e
...@@ -924,7 +924,7 @@ static void __init aty128_get_pllinfo(struct aty128fb_par *par, unsigned char *b ...@@ -924,7 +924,7 @@ static void __init aty128_get_pllinfo(struct aty128fb_par *par, unsigned char *b
} }
#ifdef __i386__ #ifdef CONFIG_X86
static void * __devinit aty128_find_mem_vbios(struct aty128fb_par *par) static void * __devinit aty128_find_mem_vbios(struct aty128fb_par *par)
{ {
/* I simplified this code as we used to miss the signatures in /* I simplified this code as we used to miss the signatures in
...@@ -946,7 +946,7 @@ static void * __devinit aty128_find_mem_vbios(struct aty128fb_par *par) ...@@ -946,7 +946,7 @@ static void * __devinit aty128_find_mem_vbios(struct aty128fb_par *par)
} }
return rom_base; return rom_base;
} }
#endif /* __i386__ */ #endif
#endif /* ndef(__sparc__) */ #endif /* ndef(__sparc__) */
/* fill in known card constants if pll_block is not available */ /* fill in known card constants if pll_block is not available */
...@@ -1950,7 +1950,7 @@ static int __init aty128_probe(struct pci_dev *pdev, const struct pci_device_id ...@@ -1950,7 +1950,7 @@ static int __init aty128_probe(struct pci_dev *pdev, const struct pci_device_id
#ifndef __sparc__ #ifndef __sparc__
bios = aty128_map_ROM(par, pdev); bios = aty128_map_ROM(par, pdev);
#ifdef __i386__ #ifdef CONFIG_X86
if (bios == NULL) if (bios == NULL)
bios = aty128_find_mem_vbios(par); bios = aty128_find_mem_vbios(par);
#endif #endif
......
...@@ -386,7 +386,7 @@ static int __devinit radeon_map_ROM(struct radeonfb_info *rinfo, struct pci_dev ...@@ -386,7 +386,7 @@ static int __devinit radeon_map_ROM(struct radeonfb_info *rinfo, struct pci_dev
return -ENXIO; return -ENXIO;
} }
#ifdef __i386__ #ifdef CONFIG_X86
static int __devinit radeon_find_mem_vbios(struct radeonfb_info *rinfo) static int __devinit radeon_find_mem_vbios(struct radeonfb_info *rinfo)
{ {
/* I simplified this code as we used to miss the signatures in /* I simplified this code as we used to miss the signatures in
...@@ -415,7 +415,7 @@ static int __devinit radeon_find_mem_vbios(struct radeonfb_info *rinfo) ...@@ -415,7 +415,7 @@ static int __devinit radeon_find_mem_vbios(struct radeonfb_info *rinfo)
return 0; return 0;
} }
#endif /* __i386__ */ #endif
#ifdef CONFIG_PPC_OF #ifdef CONFIG_PPC_OF
/* /*
...@@ -2277,13 +2277,13 @@ static int radeonfb_pci_register (struct pci_dev *pdev, ...@@ -2277,13 +2277,13 @@ static int radeonfb_pci_register (struct pci_dev *pdev,
/* /*
* On x86, the primary display on laptop may have it's BIOS * On x86, the primary display on laptop may have it's BIOS
* ROM elsewhere, try to locate it at the legacy memory hole. * ROM elsewhere, try to locate it at the legacy memory hole.
* We probably need to make sure this is the primary dispay, * We probably need to make sure this is the primary display,
* but that is difficult without some arch support. * but that is difficult without some arch support.
*/ */
#ifdef __i386__ #ifdef CONFIG_X86
if (rinfo->bios_seg == NULL) if (rinfo->bios_seg == NULL)
radeon_find_mem_vbios(rinfo); radeon_find_mem_vbios(rinfo);
#endif /* __i386__ */ #endif
/* If both above failed, try the BIOS ROM again for mobility /* If both above failed, try the BIOS ROM again for mobility
* chips * chips
......
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