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
}
#ifdef __i386__
#ifdef CONFIG_X86
static void * __devinit aty128_find_mem_vbios(struct aty128fb_par *par)
{
/* 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)
}
return rom_base;
}
#endif /* __i386__ */
#endif
#endif /* ndef(__sparc__) */
/* 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
#ifndef __sparc__
bios = aty128_map_ROM(par, pdev);
#ifdef __i386__
#ifdef CONFIG_X86
if (bios == NULL)
bios = aty128_find_mem_vbios(par);
#endif
......
......@@ -386,7 +386,7 @@ static int __devinit radeon_map_ROM(struct radeonfb_info *rinfo, struct pci_dev
return -ENXIO;
}
#ifdef __i386__
#ifdef CONFIG_X86
static int __devinit radeon_find_mem_vbios(struct radeonfb_info *rinfo)
{
/* 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)
return 0;
}
#endif /* __i386__ */
#endif
#ifdef CONFIG_PPC_OF
/*
......@@ -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
* 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.
*/
#ifdef __i386__
#ifdef CONFIG_X86
if (rinfo->bios_seg == NULL)
radeon_find_mem_vbios(rinfo);
#endif /* __i386__ */
#endif
/* If both above failed, try the BIOS ROM again for mobility
* 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