X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fvideo%2Faty%2Faty128fb.c;h=b19eded6cb8b7c4f70e8b0584ea2bbf20c648f4a;hb=73c4d347a0c98eb6599aefd1f9a91b4b071dd5e0;hp=1c7bcd80f4ba0e99a26b50572ace58f0c4e53f24;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/drivers/video/aty/aty128fb.c b/drivers/video/aty/aty128fb.c index 1c7bcd80f..b19eded6c 100644 --- a/drivers/video/aty/aty128fb.c +++ b/drivers/video/aty/aty128fb.c @@ -924,7 +924,7 @@ static void __init aty128_get_pllinfo(struct aty128fb_par *par, unsigned char *b } -#ifdef CONFIG_X86 +#ifdef __i386__ 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 +#endif /* __i386__ */ #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 CONFIG_X86 +#ifdef __i386__ if (bios == NULL) bios = aty128_find_mem_vbios(par); #endif @@ -2149,7 +2149,7 @@ static int aty128fb_ioctl(struct inode *inode, struct file *file, u_int cmd, case FBIO_ATY128_SET_MIRROR: if (par->chip_gen != rage_M3) return -EINVAL; - rc = get_user(value, (__u32 __user *)arg); + rc = get_user(value, (__u32*)arg); if (rc) return rc; par->lcd_on = (value & 0x01) != 0; @@ -2163,7 +2163,7 @@ static int aty128fb_ioctl(struct inode *inode, struct file *file, u_int cmd, if (par->chip_gen != rage_M3) return -EINVAL; value = (par->crt_on << 1) | par->lcd_on; - return put_user(value, (__u32 __user *)arg); + return put_user(value, (__u32*)arg); } #endif return -EINVAL; @@ -2419,7 +2419,7 @@ static int aty128_pci_resume(struct pci_dev *pdev) wait_for_idle(par); aty128fb_set_par(info); fb_pan_display(info, &info->var); - fb_set_cmap(&info->cmap, info); + fb_set_cmap(&info->cmap, 1, info); /* Refresh */ fb_set_suspend(info, 0);