mirror of
https://github.com/Dasharo/linux.git
synced 2026-03-06 15:25:10 -08:00
Drivers: video: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev* markings need to be removed. This change removes the use of __devinit, __devexit_p, __devinitdata, __devinitconst, and __devexit from these drivers. Based on patches originally written by Bill Pemberton, but redone by me in order to handle some of the coding style issues better, by hand. Cc: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -66,7 +66,7 @@
|
||||
* have. Allow 1% either way on the nominal for TVs.
|
||||
*/
|
||||
#define NR_MONTYPES 6
|
||||
static struct fb_monspecs monspecs[NR_MONTYPES] __devinitdata = {
|
||||
static struct fb_monspecs monspecs[NR_MONTYPES] = {
|
||||
{ /* TV */
|
||||
.hfmin = 15469,
|
||||
.hfmax = 15781,
|
||||
@@ -874,7 +874,7 @@ static struct fb_ops acornfb_ops = {
|
||||
/*
|
||||
* Everything after here is initialisation!!!
|
||||
*/
|
||||
static struct fb_videomode modedb[] __devinitdata = {
|
||||
static struct fb_videomode modedb[] = {
|
||||
{ /* 320x256 @ 50Hz */
|
||||
NULL, 50, 320, 256, 125000, 92, 62, 35, 19, 38, 2,
|
||||
FB_SYNC_COMP_HIGH_ACT,
|
||||
@@ -926,7 +926,7 @@ static struct fb_videomode modedb[] __devinitdata = {
|
||||
}
|
||||
};
|
||||
|
||||
static struct fb_videomode acornfb_default_mode __devinitdata = {
|
||||
static struct fb_videomode acornfb_default_mode = {
|
||||
.name = NULL,
|
||||
.refresh = 60,
|
||||
.xres = 640,
|
||||
@@ -942,7 +942,7 @@ static struct fb_videomode acornfb_default_mode __devinitdata = {
|
||||
.vmode = FB_VMODE_NONINTERLACED
|
||||
};
|
||||
|
||||
static void __devinit acornfb_init_fbinfo(void)
|
||||
static void acornfb_init_fbinfo(void)
|
||||
{
|
||||
static int first = 1;
|
||||
|
||||
@@ -1018,7 +1018,7 @@ static void __devinit acornfb_init_fbinfo(void)
|
||||
* size can optionally be followed by 'M' or 'K' for
|
||||
* MB or KB respectively.
|
||||
*/
|
||||
static void __devinit acornfb_parse_mon(char *opt)
|
||||
static void acornfb_parse_mon(char *opt)
|
||||
{
|
||||
char *p = opt;
|
||||
|
||||
@@ -1065,7 +1065,7 @@ bad:
|
||||
current_par.montype = -1;
|
||||
}
|
||||
|
||||
static void __devinit acornfb_parse_montype(char *opt)
|
||||
static void acornfb_parse_montype(char *opt)
|
||||
{
|
||||
current_par.montype = -2;
|
||||
|
||||
@@ -1106,7 +1106,7 @@ static void __devinit acornfb_parse_montype(char *opt)
|
||||
}
|
||||
}
|
||||
|
||||
static void __devinit acornfb_parse_dram(char *opt)
|
||||
static void acornfb_parse_dram(char *opt)
|
||||
{
|
||||
unsigned int size;
|
||||
|
||||
@@ -1131,14 +1131,14 @@ static void __devinit acornfb_parse_dram(char *opt)
|
||||
static struct options {
|
||||
char *name;
|
||||
void (*parse)(char *opt);
|
||||
} opt_table[] __devinitdata = {
|
||||
} opt_table[] = {
|
||||
{ "mon", acornfb_parse_mon },
|
||||
{ "montype", acornfb_parse_montype },
|
||||
{ "dram", acornfb_parse_dram },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
static int __devinit acornfb_setup(char *options)
|
||||
static int acornfb_setup(char *options)
|
||||
{
|
||||
struct options *optp;
|
||||
char *opt;
|
||||
@@ -1175,7 +1175,7 @@ static int __devinit acornfb_setup(char *options)
|
||||
* Detect type of monitor connected
|
||||
* For now, we just assume SVGA
|
||||
*/
|
||||
static int __devinit acornfb_detect_monitortype(void)
|
||||
static int acornfb_detect_monitortype(void)
|
||||
{
|
||||
return 4;
|
||||
}
|
||||
@@ -1216,7 +1216,7 @@ free_unused_pages(unsigned int virtual_start, unsigned int virtual_end)
|
||||
printk("acornfb: freed %dK memory\n", mb_freed);
|
||||
}
|
||||
|
||||
static int __devinit acornfb_probe(struct platform_device *dev)
|
||||
static int acornfb_probe(struct platform_device *dev)
|
||||
{
|
||||
unsigned long size;
|
||||
u_int h_sync, v_sync;
|
||||
|
||||
@@ -79,7 +79,7 @@ struct arcfb_par {
|
||||
spinlock_t lock;
|
||||
};
|
||||
|
||||
static struct fb_fix_screeninfo arcfb_fix __devinitdata = {
|
||||
static struct fb_fix_screeninfo arcfb_fix = {
|
||||
.id = "arcfb",
|
||||
.type = FB_TYPE_PACKED_PIXELS,
|
||||
.visual = FB_VISUAL_MONO01,
|
||||
@@ -89,7 +89,7 @@ static struct fb_fix_screeninfo arcfb_fix __devinitdata = {
|
||||
.accel = FB_ACCEL_NONE,
|
||||
};
|
||||
|
||||
static struct fb_var_screeninfo arcfb_var __devinitdata = {
|
||||
static struct fb_var_screeninfo arcfb_var = {
|
||||
.xres = 128,
|
||||
.yres = 64,
|
||||
.xres_virtual = 128,
|
||||
@@ -502,7 +502,7 @@ static struct fb_ops arcfb_ops = {
|
||||
.fb_ioctl = arcfb_ioctl,
|
||||
};
|
||||
|
||||
static int __devinit arcfb_probe(struct platform_device *dev)
|
||||
static int arcfb_probe(struct platform_device *dev)
|
||||
{
|
||||
struct fb_info *info;
|
||||
int retval = -ENOMEM;
|
||||
@@ -587,7 +587,7 @@ err:
|
||||
return retval;
|
||||
}
|
||||
|
||||
static int __devexit arcfb_remove(struct platform_device *dev)
|
||||
static int arcfb_remove(struct platform_device *dev)
|
||||
{
|
||||
struct fb_info *info = platform_get_drvdata(dev);
|
||||
|
||||
@@ -601,7 +601,7 @@ static int __devexit arcfb_remove(struct platform_device *dev)
|
||||
|
||||
static struct platform_driver arcfb_driver = {
|
||||
.probe = arcfb_probe,
|
||||
.remove = __devexit_p(arcfb_remove),
|
||||
.remove = arcfb_remove,
|
||||
.driver = {
|
||||
.name = "arcfb",
|
||||
},
|
||||
|
||||
@@ -100,7 +100,7 @@ static const struct svga_timing_regs ark_timing_regs = {
|
||||
|
||||
/* Module parameters */
|
||||
|
||||
static char *mode_option __devinitdata = "640x480-8@60";
|
||||
static char *mode_option = "640x480-8@60";
|
||||
|
||||
#ifdef CONFIG_MTRR
|
||||
static int mtrr = 1;
|
||||
@@ -950,7 +950,7 @@ static struct fb_ops arkfb_ops = {
|
||||
|
||||
|
||||
/* PCI probe */
|
||||
static int __devinit ark_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
|
||||
static int ark_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
|
||||
{
|
||||
struct pci_bus_region bus_reg;
|
||||
struct resource vga_res;
|
||||
@@ -1086,7 +1086,7 @@ err_enable_device:
|
||||
|
||||
/* PCI remove */
|
||||
|
||||
static void __devexit ark_pci_remove(struct pci_dev *dev)
|
||||
static void ark_pci_remove(struct pci_dev *dev)
|
||||
{
|
||||
struct fb_info *info = pci_get_drvdata(dev);
|
||||
|
||||
@@ -1184,7 +1184,7 @@ fail:
|
||||
|
||||
/* List of boards that we are trying to support */
|
||||
|
||||
static struct pci_device_id ark_devices[] __devinitdata = {
|
||||
static struct pci_device_id ark_devices[] = {
|
||||
{PCI_DEVICE(0xEDD8, 0xA099)},
|
||||
{0, 0, 0, 0, 0, 0, 0}
|
||||
};
|
||||
@@ -1196,7 +1196,7 @@ static struct pci_driver arkfb_pci_driver = {
|
||||
.name = "arkfb",
|
||||
.id_table = ark_devices,
|
||||
.probe = ark_pci_probe,
|
||||
.remove = __devexit_p(ark_pci_remove),
|
||||
.remove = ark_pci_remove,
|
||||
.suspend = ark_pci_suspend,
|
||||
.resume = ark_pci_resume,
|
||||
};
|
||||
|
||||
@@ -451,7 +451,7 @@ static struct chips_init_reg chips_init_xr[] =
|
||||
{0xd1, 0x01},
|
||||
};
|
||||
|
||||
static void __devinit chips_hw_init(struct fb_info *p)
|
||||
static void chips_hw_init(struct fb_info *p)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -474,7 +474,7 @@ static void __devinit chips_hw_init(struct fb_info *p)
|
||||
write_fr(chips_init_fr[i].addr, chips_init_fr[i].data);
|
||||
}
|
||||
|
||||
static struct fb_fix_screeninfo asiliantfb_fix __devinitdata = {
|
||||
static struct fb_fix_screeninfo asiliantfb_fix = {
|
||||
.id = "Asiliant 69000",
|
||||
.type = FB_TYPE_PACKED_PIXELS,
|
||||
.visual = FB_VISUAL_PSEUDOCOLOR,
|
||||
@@ -483,7 +483,7 @@ static struct fb_fix_screeninfo asiliantfb_fix __devinitdata = {
|
||||
.smem_len = 0x200000, /* 2MB */
|
||||
};
|
||||
|
||||
static struct fb_var_screeninfo asiliantfb_var __devinitdata = {
|
||||
static struct fb_var_screeninfo asiliantfb_var = {
|
||||
.xres = 640,
|
||||
.yres = 480,
|
||||
.xres_virtual = 640,
|
||||
@@ -504,7 +504,7 @@ static struct fb_var_screeninfo asiliantfb_var __devinitdata = {
|
||||
.vsync_len = 2,
|
||||
};
|
||||
|
||||
static int __devinit init_asiliant(struct fb_info *p, unsigned long addr)
|
||||
static int init_asiliant(struct fb_info *p, unsigned long addr)
|
||||
{
|
||||
int err;
|
||||
|
||||
@@ -535,8 +535,8 @@ static int __devinit init_asiliant(struct fb_info *p, unsigned long addr)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __devinit
|
||||
asiliantfb_pci_init(struct pci_dev *dp, const struct pci_device_id *ent)
|
||||
static int asiliantfb_pci_init(struct pci_dev *dp,
|
||||
const struct pci_device_id *ent)
|
||||
{
|
||||
unsigned long addr, size;
|
||||
struct fb_info *p;
|
||||
@@ -581,7 +581,7 @@ asiliantfb_pci_init(struct pci_dev *dp, const struct pci_device_id *ent)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void __devexit asiliantfb_remove(struct pci_dev *dp)
|
||||
static void asiliantfb_remove(struct pci_dev *dp)
|
||||
{
|
||||
struct fb_info *p = pci_get_drvdata(dp);
|
||||
|
||||
@@ -593,7 +593,7 @@ static void __devexit asiliantfb_remove(struct pci_dev *dp)
|
||||
framebuffer_release(p);
|
||||
}
|
||||
|
||||
static struct pci_device_id asiliantfb_pci_tbl[] __devinitdata = {
|
||||
static struct pci_device_id asiliantfb_pci_tbl[] = {
|
||||
{ PCI_VENDOR_ID_CT, PCI_DEVICE_ID_CT_69000, PCI_ANY_ID, PCI_ANY_ID },
|
||||
{ 0 }
|
||||
};
|
||||
@@ -604,7 +604,7 @@ static struct pci_driver asiliantfb_driver = {
|
||||
.name = "asiliantfb",
|
||||
.id_table = asiliantfb_pci_tbl,
|
||||
.probe = asiliantfb_pci_init,
|
||||
.remove = __devexit_p(asiliantfb_remove),
|
||||
.remove = asiliantfb_remove,
|
||||
};
|
||||
|
||||
static int __init asiliantfb_init(void)
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
|
||||
#ifndef CONFIG_PPC_PMAC
|
||||
/* default mode */
|
||||
static struct fb_var_screeninfo default_var __devinitdata = {
|
||||
static struct fb_var_screeninfo default_var = {
|
||||
/* 640x480, 60 Hz, Non-Interlaced (25.175 MHz dotclock) */
|
||||
640, 480, 640, 480, 0, 0, 8, 0,
|
||||
{0, 8, 0}, {0, 8, 0}, {0, 8, 0}, {0, 0, 0},
|
||||
@@ -121,7 +121,7 @@ static struct fb_var_screeninfo default_var = {
|
||||
|
||||
/* default modedb mode */
|
||||
/* 640x480, 60 Hz, Non-Interlaced (25.172 MHz dotclock) */
|
||||
static struct fb_videomode defaultmode __devinitdata = {
|
||||
static struct fb_videomode defaultmode = {
|
||||
.refresh = 60,
|
||||
.xres = 640,
|
||||
.yres = 480,
|
||||
@@ -149,7 +149,7 @@ enum {
|
||||
};
|
||||
|
||||
/* Must match above enum */
|
||||
static char * const r128_family[] __devinitconst = {
|
||||
static char * const r128_family[] = {
|
||||
"AGP",
|
||||
"PCI",
|
||||
"PRO AGP",
|
||||
@@ -275,7 +275,7 @@ static struct pci_driver aty128fb_driver = {
|
||||
.name = "aty128fb",
|
||||
.id_table = aty128_pci_tbl,
|
||||
.probe = aty128_probe,
|
||||
.remove = __devexit_p(aty128_remove),
|
||||
.remove = aty128_remove,
|
||||
.suspend = aty128_pci_suspend,
|
||||
.resume = aty128_pci_resume,
|
||||
};
|
||||
@@ -333,7 +333,7 @@ static const struct aty128_meminfo sdr_sgram =
|
||||
static const struct aty128_meminfo ddr_sgram =
|
||||
{ 4, 4, 3, 3, 2, 3, 1, 16, 31, 16, "64-bit DDR SGRAM" };
|
||||
|
||||
static struct fb_fix_screeninfo aty128fb_fix __devinitdata = {
|
||||
static struct fb_fix_screeninfo aty128fb_fix = {
|
||||
.id = "ATY Rage128",
|
||||
.type = FB_TYPE_PACKED_PIXELS,
|
||||
.visual = FB_VISUAL_PSEUDOCOLOR,
|
||||
@@ -343,24 +343,24 @@ static struct fb_fix_screeninfo aty128fb_fix __devinitdata = {
|
||||
.accel = FB_ACCEL_ATI_RAGE128,
|
||||
};
|
||||
|
||||
static char *mode_option __devinitdata = NULL;
|
||||
static char *mode_option = NULL;
|
||||
|
||||
#ifdef CONFIG_PPC_PMAC
|
||||
static int default_vmode __devinitdata = VMODE_1024_768_60;
|
||||
static int default_cmode __devinitdata = CMODE_8;
|
||||
static int default_vmode = VMODE_1024_768_60;
|
||||
static int default_cmode = CMODE_8;
|
||||
#endif
|
||||
|
||||
static int default_crt_on __devinitdata = 0;
|
||||
static int default_lcd_on __devinitdata = 1;
|
||||
static int default_crt_on = 0;
|
||||
static int default_lcd_on = 1;
|
||||
|
||||
#ifdef CONFIG_MTRR
|
||||
static bool mtrr = true;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PMAC_BACKLIGHT
|
||||
static int backlight __devinitdata = 1;
|
||||
static int backlight = 1;
|
||||
#else
|
||||
static int backlight __devinitdata = 0;
|
||||
static int backlight = 0;
|
||||
#endif
|
||||
|
||||
/* PLL constants */
|
||||
@@ -449,10 +449,9 @@ static int aty128_encode_var(struct fb_var_screeninfo *var,
|
||||
static int aty128_decode_var(struct fb_var_screeninfo *var,
|
||||
struct aty128fb_par *par);
|
||||
#if 0
|
||||
static void __devinit aty128_get_pllinfo(struct aty128fb_par *par,
|
||||
void __iomem *bios);
|
||||
static void __devinit __iomem *aty128_map_ROM(struct pci_dev *pdev,
|
||||
const struct aty128fb_par *par);
|
||||
static void aty128_get_pllinfo(struct aty128fb_par *par, void __iomem *bios);
|
||||
static void __iomem *aty128_map_ROM(struct pci_dev *pdev,
|
||||
const struct aty128fb_par *par);
|
||||
#endif
|
||||
static void aty128_timings(struct aty128fb_par *par);
|
||||
static void aty128_init_engine(struct aty128fb_par *par);
|
||||
@@ -582,7 +581,7 @@ static void aty_pll_writeupdate(const struct aty128fb_par *par)
|
||||
|
||||
|
||||
/* write to the scratch register to test r/w functionality */
|
||||
static int __devinit register_test(const struct aty128fb_par *par)
|
||||
static int register_test(const struct aty128fb_par *par)
|
||||
{
|
||||
u32 val;
|
||||
int flag = 0;
|
||||
@@ -781,8 +780,8 @@ static u32 depth_to_dst(u32 depth)
|
||||
|
||||
|
||||
#ifndef __sparc__
|
||||
static void __iomem * __devinit aty128_map_ROM(const struct aty128fb_par *par,
|
||||
struct pci_dev *dev)
|
||||
static void __iomem *aty128_map_ROM(const struct aty128fb_par *par,
|
||||
struct pci_dev *dev)
|
||||
{
|
||||
u16 dptr;
|
||||
u8 rom_type;
|
||||
@@ -868,8 +867,8 @@ static void __iomem * __devinit aty128_map_ROM(const struct aty128fb_par *par,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void __devinit aty128_get_pllinfo(struct aty128fb_par *par,
|
||||
unsigned char __iomem *bios)
|
||||
static void aty128_get_pllinfo(struct aty128fb_par *par,
|
||||
unsigned char __iomem *bios)
|
||||
{
|
||||
unsigned int bios_hdr;
|
||||
unsigned int bios_pll;
|
||||
@@ -891,7 +890,7 @@ static void __devinit aty128_get_pllinfo(struct aty128fb_par *par,
|
||||
}
|
||||
|
||||
#ifdef CONFIG_X86
|
||||
static void __iomem * __devinit aty128_find_mem_vbios(struct aty128fb_par *par)
|
||||
static void __iomem *aty128_find_mem_vbios(struct aty128fb_par *par)
|
||||
{
|
||||
/* I simplified this code as we used to miss the signatures in
|
||||
* a lot of case. It's now closer to XFree, we just don't check
|
||||
@@ -916,7 +915,7 @@ static void __iomem * __devinit aty128_find_mem_vbios(struct aty128fb_par *par)
|
||||
#endif /* ndef(__sparc__) */
|
||||
|
||||
/* fill in known card constants if pll_block is not available */
|
||||
static void __devinit aty128_timings(struct aty128fb_par *par)
|
||||
static void aty128_timings(struct aty128fb_par *par)
|
||||
{
|
||||
#ifdef CONFIG_PPC_OF
|
||||
/* instead of a table lookup, assume OF has properly
|
||||
@@ -1658,7 +1657,7 @@ static int aty128fb_sync(struct fb_info *info)
|
||||
}
|
||||
|
||||
#ifndef MODULE
|
||||
static int __devinit aty128fb_setup(char *options)
|
||||
static int aty128fb_setup(char *options)
|
||||
{
|
||||
char *this_opt;
|
||||
|
||||
@@ -1888,8 +1887,7 @@ static void aty128_early_resume(void *data)
|
||||
}
|
||||
#endif /* CONFIG_PPC_PMAC */
|
||||
|
||||
static int __devinit aty128_init(struct pci_dev *pdev,
|
||||
const struct pci_device_id *ent)
|
||||
static int aty128_init(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
{
|
||||
struct fb_info *info = pci_get_drvdata(pdev);
|
||||
struct aty128fb_par *par = info->par;
|
||||
@@ -2039,8 +2037,7 @@ static int __devinit aty128_init(struct pci_dev *pdev,
|
||||
|
||||
#ifdef CONFIG_PCI
|
||||
/* register a card ++ajoshi */
|
||||
static int __devinit aty128_probe(struct pci_dev *pdev,
|
||||
const struct pci_device_id *ent)
|
||||
static int aty128_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
{
|
||||
unsigned long fb_addr, reg_addr;
|
||||
struct aty128fb_par *par;
|
||||
@@ -2156,7 +2153,7 @@ err_free_fb:
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
static void __devexit aty128_remove(struct pci_dev *pdev)
|
||||
static void aty128_remove(struct pci_dev *pdev)
|
||||
{
|
||||
struct fb_info *info = pci_get_drvdata(pdev);
|
||||
struct aty128fb_par *par;
|
||||
@@ -2558,7 +2555,7 @@ static int aty128_pci_resume(struct pci_dev *pdev)
|
||||
}
|
||||
|
||||
|
||||
static int __devinit aty128fb_init(void)
|
||||
static int aty128fb_init(void)
|
||||
{
|
||||
#ifndef MODULE
|
||||
char *option = NULL;
|
||||
|
||||
@@ -214,7 +214,7 @@ struct pci_mmap_map {
|
||||
unsigned long prot_mask;
|
||||
};
|
||||
|
||||
static struct fb_fix_screeninfo atyfb_fix __devinitdata = {
|
||||
static struct fb_fix_screeninfo atyfb_fix = {
|
||||
.id = "ATY Mach64",
|
||||
.type = FB_TYPE_PACKED_PIXELS,
|
||||
.visual = FB_VISUAL_PSEUDOCOLOR,
|
||||
@@ -309,18 +309,18 @@ static int vram;
|
||||
static int pll;
|
||||
static int mclk;
|
||||
static int xclk;
|
||||
static int comp_sync __devinitdata = -1;
|
||||
static int comp_sync = -1;
|
||||
static char *mode;
|
||||
|
||||
#ifdef CONFIG_PMAC_BACKLIGHT
|
||||
static int backlight __devinitdata = 1;
|
||||
static int backlight = 1;
|
||||
#else
|
||||
static int backlight __devinitdata = 0;
|
||||
static int backlight = 0;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PPC
|
||||
static int default_vmode __devinitdata = VMODE_CHOOSE;
|
||||
static int default_cmode __devinitdata = CMODE_CHOOSE;
|
||||
static int default_vmode = VMODE_CHOOSE;
|
||||
static int default_cmode = CMODE_CHOOSE;
|
||||
|
||||
module_param_named(vmode, default_vmode, int, 0);
|
||||
MODULE_PARM_DESC(vmode, "int: video mode for mac");
|
||||
@@ -329,10 +329,10 @@ MODULE_PARM_DESC(cmode, "int: color mode for mac");
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ATARI
|
||||
static unsigned int mach64_count __devinitdata = 0;
|
||||
static unsigned long phys_vmembase[FB_MAX] __devinitdata = { 0, };
|
||||
static unsigned long phys_size[FB_MAX] __devinitdata = { 0, };
|
||||
static unsigned long phys_guiregbase[FB_MAX] __devinitdata = { 0, };
|
||||
static unsigned int mach64_count = 0;
|
||||
static unsigned long phys_vmembase[FB_MAX] = { 0, };
|
||||
static unsigned long phys_size[FB_MAX] = { 0, };
|
||||
static unsigned long phys_guiregbase[FB_MAX] = { 0, };
|
||||
#endif
|
||||
|
||||
/* top -> down is an evolution of mach64 chipset, any corrections? */
|
||||
@@ -371,7 +371,7 @@ static struct {
|
||||
const char *name;
|
||||
int pll, mclk, xclk, ecp_max;
|
||||
u32 features;
|
||||
} aty_chips[] __devinitdata = {
|
||||
} aty_chips[] = {
|
||||
#ifdef CONFIG_FB_ATY_GX
|
||||
/* Mach64 GX */
|
||||
{ PCI_CHIP_MACH64GX, "ATI888GX00 (Mach64 GX)", 135, 50, 50, 0, ATI_CHIP_88800GX },
|
||||
@@ -426,7 +426,7 @@ static struct {
|
||||
#endif /* CONFIG_FB_ATY_CT */
|
||||
};
|
||||
|
||||
static int __devinit correct_chipset(struct atyfb_par *par)
|
||||
static int correct_chipset(struct atyfb_par *par)
|
||||
{
|
||||
u8 rev;
|
||||
u16 type;
|
||||
@@ -531,34 +531,34 @@ static int __devinit correct_chipset(struct atyfb_par *par)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static char ram_dram[] __devinitdata = "DRAM";
|
||||
static char ram_resv[] __devinitdata = "RESV";
|
||||
static char ram_dram[] = "DRAM";
|
||||
static char ram_resv[] = "RESV";
|
||||
#ifdef CONFIG_FB_ATY_GX
|
||||
static char ram_vram[] __devinitdata = "VRAM";
|
||||
static char ram_vram[] = "VRAM";
|
||||
#endif /* CONFIG_FB_ATY_GX */
|
||||
#ifdef CONFIG_FB_ATY_CT
|
||||
static char ram_edo[] __devinitdata = "EDO";
|
||||
static char ram_sdram[] __devinitdata = "SDRAM (1:1)";
|
||||
static char ram_sgram[] __devinitdata = "SGRAM (1:1)";
|
||||
static char ram_sdram32[] __devinitdata = "SDRAM (2:1) (32-bit)";
|
||||
static char ram_wram[] __devinitdata = "WRAM";
|
||||
static char ram_off[] __devinitdata = "OFF";
|
||||
static char ram_edo[] = "EDO";
|
||||
static char ram_sdram[] = "SDRAM (1:1)";
|
||||
static char ram_sgram[] = "SGRAM (1:1)";
|
||||
static char ram_sdram32[] = "SDRAM (2:1) (32-bit)";
|
||||
static char ram_wram[] = "WRAM";
|
||||
static char ram_off[] = "OFF";
|
||||
#endif /* CONFIG_FB_ATY_CT */
|
||||
|
||||
|
||||
#ifdef CONFIG_FB_ATY_GX
|
||||
static char *aty_gx_ram[8] __devinitdata = {
|
||||
static char *aty_gx_ram[8] = {
|
||||
ram_dram, ram_vram, ram_vram, ram_dram,
|
||||
ram_dram, ram_vram, ram_vram, ram_resv
|
||||
};
|
||||
#endif /* CONFIG_FB_ATY_GX */
|
||||
|
||||
#ifdef CONFIG_FB_ATY_CT
|
||||
static char *aty_ct_ram[8] __devinitdata = {
|
||||
static char *aty_ct_ram[8] = {
|
||||
ram_off, ram_dram, ram_edo, ram_edo,
|
||||
ram_sdram, ram_sgram, ram_wram, ram_resv
|
||||
};
|
||||
static char *aty_xl_ram[8] __devinitdata = {
|
||||
static char *aty_xl_ram[8] = {
|
||||
ram_off, ram_dram, ram_edo, ram_edo,
|
||||
ram_sdram, ram_sgram, ram_sdram32, ram_resv
|
||||
};
|
||||
@@ -588,7 +588,7 @@ static u32 atyfb_get_pixclock(struct fb_var_screeninfo *var,
|
||||
* Apple monitor sense
|
||||
*/
|
||||
|
||||
static int __devinit read_aty_sense(const struct atyfb_par *par)
|
||||
static int read_aty_sense(const struct atyfb_par *par)
|
||||
{
|
||||
int sense, i;
|
||||
|
||||
@@ -2273,7 +2273,7 @@ static void aty_bl_exit(struct backlight_device *bd)
|
||||
|
||||
#endif /* CONFIG_FB_ATY_BACKLIGHT */
|
||||
|
||||
static void __devinit aty_calc_mem_refresh(struct atyfb_par *par, int xclk)
|
||||
static void aty_calc_mem_refresh(struct atyfb_par *par, int xclk)
|
||||
{
|
||||
const int ragepro_tbl[] = {
|
||||
44, 50, 55, 66, 75, 80, 100
|
||||
@@ -2307,8 +2307,8 @@ static void __devinit aty_calc_mem_refresh(struct atyfb_par *par, int xclk)
|
||||
static struct fb_info *fb_list = NULL;
|
||||
|
||||
#if defined(__i386__) && defined(CONFIG_FB_ATY_GENERIC_LCD)
|
||||
static int __devinit atyfb_get_timings_from_lcd(struct atyfb_par *par,
|
||||
struct fb_var_screeninfo *var)
|
||||
static int atyfb_get_timings_from_lcd(struct atyfb_par *par,
|
||||
struct fb_var_screeninfo *var)
|
||||
{
|
||||
int ret = -EINVAL;
|
||||
|
||||
@@ -2333,7 +2333,7 @@ static int __devinit atyfb_get_timings_from_lcd(struct atyfb_par *par,
|
||||
}
|
||||
#endif /* defined(__i386__) && defined(CONFIG_FB_ATY_GENERIC_LCD) */
|
||||
|
||||
static int __devinit aty_init(struct fb_info *info)
|
||||
static int aty_init(struct fb_info *info)
|
||||
{
|
||||
struct atyfb_par *par = (struct atyfb_par *) info->par;
|
||||
const char *ramname = NULL, *xtal;
|
||||
@@ -2787,7 +2787,7 @@ aty_init_exit:
|
||||
}
|
||||
|
||||
#if defined(CONFIG_ATARI) && !defined(MODULE)
|
||||
static int __devinit store_video_par(char *video_str, unsigned char m64_num)
|
||||
static int store_video_par(char *video_str, unsigned char m64_num)
|
||||
{
|
||||
char *p;
|
||||
unsigned long vmembase, size, guiregbase;
|
||||
@@ -2961,9 +2961,8 @@ static int atyfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
|
||||
|
||||
#ifdef __sparc__
|
||||
|
||||
static int __devinit atyfb_setup_sparc(struct pci_dev *pdev,
|
||||
struct fb_info *info,
|
||||
unsigned long addr)
|
||||
static int atyfb_setup_sparc(struct pci_dev *pdev, struct fb_info *info,
|
||||
unsigned long addr)
|
||||
{
|
||||
struct atyfb_par *par = info->par;
|
||||
struct device_node *dp;
|
||||
@@ -3161,7 +3160,7 @@ static int __devinit atyfb_setup_sparc(struct pci_dev *pdev,
|
||||
|
||||
#ifdef __i386__
|
||||
#ifdef CONFIG_FB_ATY_GENERIC_LCD
|
||||
static void __devinit aty_init_lcd(struct atyfb_par *par, u32 bios_base)
|
||||
static void aty_init_lcd(struct atyfb_par *par, u32 bios_base)
|
||||
{
|
||||
u32 driv_inf_tab, sig;
|
||||
u16 lcd_ofs;
|
||||
@@ -3392,7 +3391,7 @@ static void __devinit aty_init_lcd(struct atyfb_par *par, u32 bios_base)
|
||||
}
|
||||
#endif /* CONFIG_FB_ATY_GENERIC_LCD */
|
||||
|
||||
static int __devinit init_from_bios(struct atyfb_par *par)
|
||||
static int init_from_bios(struct atyfb_par *par)
|
||||
{
|
||||
u32 bios_base, rom_addr;
|
||||
int ret;
|
||||
@@ -3445,9 +3444,8 @@ static int __devinit init_from_bios(struct atyfb_par *par)
|
||||
}
|
||||
#endif /* __i386__ */
|
||||
|
||||
static int __devinit atyfb_setup_generic(struct pci_dev *pdev,
|
||||
struct fb_info *info,
|
||||
unsigned long addr)
|
||||
static int atyfb_setup_generic(struct pci_dev *pdev, struct fb_info *info,
|
||||
unsigned long addr)
|
||||
{
|
||||
struct atyfb_par *par = info->par;
|
||||
u16 tmp;
|
||||
@@ -3525,8 +3523,8 @@ atyfb_setup_generic_fail:
|
||||
|
||||
#endif /* !__sparc__ */
|
||||
|
||||
static int __devinit atyfb_pci_probe(struct pci_dev *pdev,
|
||||
const struct pci_device_id *ent)
|
||||
static int atyfb_pci_probe(struct pci_dev *pdev,
|
||||
const struct pci_device_id *ent)
|
||||
{
|
||||
unsigned long addr, res_start, res_size;
|
||||
struct fb_info *info;
|
||||
@@ -3714,7 +3712,7 @@ static int __init atyfb_atari_probe(void)
|
||||
|
||||
#ifdef CONFIG_PCI
|
||||
|
||||
static void __devexit atyfb_remove(struct fb_info *info)
|
||||
static void atyfb_remove(struct fb_info *info)
|
||||
{
|
||||
struct atyfb_par *par = (struct atyfb_par *) info->par;
|
||||
|
||||
@@ -3762,7 +3760,7 @@ static void __devexit atyfb_remove(struct fb_info *info)
|
||||
}
|
||||
|
||||
|
||||
static void __devexit atyfb_pci_remove(struct pci_dev *pdev)
|
||||
static void atyfb_pci_remove(struct pci_dev *pdev)
|
||||
{
|
||||
struct fb_info *info = pci_get_drvdata(pdev);
|
||||
|
||||
@@ -3834,7 +3832,7 @@ static struct pci_driver atyfb_driver = {
|
||||
.name = "atyfb",
|
||||
.id_table = atyfb_pci_tbl,
|
||||
.probe = atyfb_pci_probe,
|
||||
.remove = __devexit_p(atyfb_pci_remove),
|
||||
.remove = atyfb_pci_remove,
|
||||
#ifdef CONFIG_PM
|
||||
.suspend = atyfb_pci_suspend,
|
||||
.resume = atyfb_pci_resume,
|
||||
|
||||
@@ -373,8 +373,7 @@ void aty_set_pll_ct(const struct fb_info *info, const union aty_pll *pll)
|
||||
#endif
|
||||
}
|
||||
|
||||
static void __devinit aty_get_pll_ct(const struct fb_info *info,
|
||||
union aty_pll *pll)
|
||||
static void aty_get_pll_ct(const struct fb_info *info, union aty_pll *pll)
|
||||
{
|
||||
struct atyfb_par *par = (struct atyfb_par *) info->par;
|
||||
u8 tmp, clock;
|
||||
@@ -397,8 +396,7 @@ static void __devinit aty_get_pll_ct(const struct fb_info *info,
|
||||
}
|
||||
}
|
||||
|
||||
static int __devinit aty_init_pll_ct(const struct fb_info *info,
|
||||
union aty_pll *pll)
|
||||
static int aty_init_pll_ct(const struct fb_info *info, union aty_pll *pll)
|
||||
{
|
||||
struct atyfb_par *par = (struct atyfb_par *) info->par;
|
||||
u8 mpost_div, xpost_div, sclk_post_div_real;
|
||||
|
||||
@@ -183,7 +183,7 @@ static int atyfb_cursor(struct fb_info *info, struct fb_cursor *cursor)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int __devinit aty_init_cursor(struct fb_info *info)
|
||||
int aty_init_cursor(struct fb_info *info)
|
||||
{
|
||||
unsigned long addr;
|
||||
|
||||
|
||||
@@ -293,7 +293,7 @@ static void radeon_unmap_ROM(struct radeonfb_info *rinfo, struct pci_dev *dev)
|
||||
pci_unmap_rom(dev, rinfo->bios_seg);
|
||||
}
|
||||
|
||||
static int __devinit radeon_map_ROM(struct radeonfb_info *rinfo, struct pci_dev *dev)
|
||||
static int radeon_map_ROM(struct radeonfb_info *rinfo, struct pci_dev *dev)
|
||||
{
|
||||
void __iomem *rom;
|
||||
u16 dptr;
|
||||
@@ -388,7 +388,7 @@ static int __devinit radeon_map_ROM(struct radeonfb_info *rinfo, struct pci_dev
|
||||
}
|
||||
|
||||
#ifdef CONFIG_X86
|
||||
static int __devinit radeon_find_mem_vbios(struct radeonfb_info *rinfo)
|
||||
static int radeon_find_mem_vbios(struct radeonfb_info *rinfo)
|
||||
{
|
||||
/* I simplified this code as we used to miss the signatures in
|
||||
* a lot of case. It's now closer to XFree, we just don't check
|
||||
@@ -423,7 +423,7 @@ static int __devinit radeon_find_mem_vbios(struct radeonfb_info *rinfo)
|
||||
* Read XTAL (ref clock), SCLK and MCLK from Open Firmware device
|
||||
* tree. Hopefully, ATI OF driver is kind enough to fill these
|
||||
*/
|
||||
static int __devinit radeon_read_xtal_OF (struct radeonfb_info *rinfo)
|
||||
static int radeon_read_xtal_OF(struct radeonfb_info *rinfo)
|
||||
{
|
||||
struct device_node *dp = rinfo->of_node;
|
||||
const u32 *val;
|
||||
@@ -453,7 +453,7 @@ static int __devinit radeon_read_xtal_OF (struct radeonfb_info *rinfo)
|
||||
/*
|
||||
* Read PLL infos from chip registers
|
||||
*/
|
||||
static int __devinit radeon_probe_pll_params(struct radeonfb_info *rinfo)
|
||||
static int radeon_probe_pll_params(struct radeonfb_info *rinfo)
|
||||
{
|
||||
unsigned char ppll_div_sel;
|
||||
unsigned Ns, Nm, M;
|
||||
@@ -591,7 +591,7 @@ static int __devinit radeon_probe_pll_params(struct radeonfb_info *rinfo)
|
||||
/*
|
||||
* Retrieve PLL infos by different means (BIOS, Open Firmware, register probing...)
|
||||
*/
|
||||
static void __devinit radeon_get_pllinfo(struct radeonfb_info *rinfo)
|
||||
static void radeon_get_pllinfo(struct radeonfb_info *rinfo)
|
||||
{
|
||||
/*
|
||||
* In the case nothing works, these are defaults; they are mostly
|
||||
@@ -1868,7 +1868,7 @@ static struct fb_ops radeonfb_ops = {
|
||||
};
|
||||
|
||||
|
||||
static int __devinit radeon_set_fbinfo (struct radeonfb_info *rinfo)
|
||||
static int radeon_set_fbinfo(struct radeonfb_info *rinfo)
|
||||
{
|
||||
struct fb_info *info = rinfo->info;
|
||||
|
||||
@@ -2143,8 +2143,8 @@ static struct bin_attribute edid2_attr = {
|
||||
};
|
||||
|
||||
|
||||
static int __devinit radeonfb_pci_register (struct pci_dev *pdev,
|
||||
const struct pci_device_id *ent)
|
||||
static int radeonfb_pci_register(struct pci_dev *pdev,
|
||||
const struct pci_device_id *ent)
|
||||
{
|
||||
struct fb_info *info;
|
||||
struct radeonfb_info *rinfo;
|
||||
@@ -2407,7 +2407,7 @@ err_out:
|
||||
|
||||
|
||||
|
||||
static void __devexit radeonfb_pci_unregister (struct pci_dev *pdev)
|
||||
static void radeonfb_pci_unregister(struct pci_dev *pdev)
|
||||
{
|
||||
struct fb_info *info = pci_get_drvdata(pdev);
|
||||
struct radeonfb_info *rinfo = info->par;
|
||||
@@ -2465,7 +2465,7 @@ static struct pci_driver radeonfb_driver = {
|
||||
.name = "radeonfb",
|
||||
.id_table = radeonfb_pci_table,
|
||||
.probe = radeonfb_pci_register,
|
||||
.remove = __devexit_p(radeonfb_pci_unregister),
|
||||
.remove = radeonfb_pci_unregister,
|
||||
#ifdef CONFIG_PM
|
||||
.suspend = radeonfb_pci_suspend,
|
||||
.resume = radeonfb_pci_resume,
|
||||
|
||||
@@ -62,8 +62,8 @@ static char *radeon_get_mon_name(int type)
|
||||
* models with broken OF probing by hard-coding known EDIDs for some Mac
|
||||
* laptops internal LVDS panel. (XXX: not done yet)
|
||||
*/
|
||||
static int __devinit radeon_parse_montype_prop(struct device_node *dp, u8 **out_EDID,
|
||||
int hdno)
|
||||
static int radeon_parse_montype_prop(struct device_node *dp, u8 **out_EDID,
|
||||
int hdno)
|
||||
{
|
||||
static char *propnames[] = { "DFP,EDID", "LCD,EDID", "EDID",
|
||||
"EDID1", "EDID2", NULL };
|
||||
@@ -115,8 +115,8 @@ static int __devinit radeon_parse_montype_prop(struct device_node *dp, u8 **out_
|
||||
return mt;
|
||||
}
|
||||
|
||||
static int __devinit radeon_probe_OF_head(struct radeonfb_info *rinfo, int head_no,
|
||||
u8 **out_EDID)
|
||||
static int radeon_probe_OF_head(struct radeonfb_info *rinfo, int head_no,
|
||||
u8 **out_EDID)
|
||||
{
|
||||
struct device_node *dp;
|
||||
|
||||
@@ -163,7 +163,7 @@ static int __devinit radeon_probe_OF_head(struct radeonfb_info *rinfo, int head_
|
||||
#endif /* CONFIG_PPC_OF || CONFIG_SPARC */
|
||||
|
||||
|
||||
static int __devinit radeon_get_panel_info_BIOS(struct radeonfb_info *rinfo)
|
||||
static int radeon_get_panel_info_BIOS(struct radeonfb_info *rinfo)
|
||||
{
|
||||
unsigned long tmp, tmp0;
|
||||
char stmp[30];
|
||||
@@ -251,7 +251,7 @@ static int __devinit radeon_get_panel_info_BIOS(struct radeonfb_info *rinfo)
|
||||
* doesn't quite work yet, but it's output is still useful for
|
||||
* debugging
|
||||
*/
|
||||
static void __devinit radeon_parse_connector_info(struct radeonfb_info *rinfo)
|
||||
static void radeon_parse_connector_info(struct radeonfb_info *rinfo)
|
||||
{
|
||||
int offset, chips, connectors, tmp, i, conn, type;
|
||||
|
||||
@@ -297,7 +297,7 @@ static void __devinit radeon_parse_connector_info(struct radeonfb_info *rinfo)
|
||||
* as well and currently is only implemented for the CRT DAC, the
|
||||
* code for the TVDAC is commented out in XFree as "non working"
|
||||
*/
|
||||
static int __devinit radeon_crt_is_connected(struct radeonfb_info *rinfo, int is_crt_dac)
|
||||
static int radeon_crt_is_connected(struct radeonfb_info *rinfo, int is_crt_dac)
|
||||
{
|
||||
int connected = 0;
|
||||
|
||||
@@ -369,8 +369,8 @@ static int __devinit radeon_crt_is_connected(struct radeonfb_info *rinfo, int is
|
||||
* Parse the "monitor_layout" string if any. This code is mostly
|
||||
* copied from XFree's radeon driver
|
||||
*/
|
||||
static int __devinit radeon_parse_monitor_layout(struct radeonfb_info *rinfo,
|
||||
const char *monitor_layout)
|
||||
static int radeon_parse_monitor_layout(struct radeonfb_info *rinfo,
|
||||
const char *monitor_layout)
|
||||
{
|
||||
char s1[5], s2[5];
|
||||
int i = 0, second = 0;
|
||||
@@ -433,8 +433,8 @@ static int __devinit radeon_parse_monitor_layout(struct radeonfb_info *rinfo,
|
||||
* try to retrieve EDID. The algorithm here comes from XFree's radeon
|
||||
* driver
|
||||
*/
|
||||
void __devinit radeon_probe_screens(struct radeonfb_info *rinfo,
|
||||
const char *monitor_layout, int ignore_edid)
|
||||
void radeon_probe_screens(struct radeonfb_info *rinfo,
|
||||
const char *monitor_layout, int ignore_edid)
|
||||
{
|
||||
#ifdef CONFIG_FB_RADEON_I2C
|
||||
int ddc_crt2_used = 0;
|
||||
@@ -753,7 +753,7 @@ static int is_powerblade(const char *model)
|
||||
* Build the modedb for head 1 (head 2 will come later), check panel infos
|
||||
* from either BIOS or EDID, and pick up the default mode
|
||||
*/
|
||||
void __devinit radeon_check_modes(struct radeonfb_info *rinfo, const char *mode_option)
|
||||
void radeon_check_modes(struct radeonfb_info *rinfo, const char *mode_option)
|
||||
{
|
||||
struct fb_info * info = rinfo->info;
|
||||
int has_default_mode = 0;
|
||||
|
||||
@@ -83,7 +83,7 @@ struct fb_bitfield rgb_bitfields[][4] =
|
||||
{ { 8, 4, 0 }, { 4, 4, 0 }, { 0, 4, 0 }, { 0, 0, 0 } },
|
||||
};
|
||||
|
||||
static struct fb_fix_screeninfo au1100fb_fix __devinitdata = {
|
||||
static struct fb_fix_screeninfo au1100fb_fix = {
|
||||
.id = "AU1100 FB",
|
||||
.xpanstep = 1,
|
||||
.ypanstep = 1,
|
||||
@@ -91,7 +91,7 @@ static struct fb_fix_screeninfo au1100fb_fix __devinitdata = {
|
||||
.accel = FB_ACCEL_NONE,
|
||||
};
|
||||
|
||||
static struct fb_var_screeninfo au1100fb_var __devinitdata = {
|
||||
static struct fb_var_screeninfo au1100fb_var = {
|
||||
.activate = FB_ACTIVATE_NOW,
|
||||
.height = -1,
|
||||
.width = -1,
|
||||
@@ -469,7 +469,7 @@ static int au1100fb_setup(struct au1100fb_device *fbdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __devinit au1100fb_drv_probe(struct platform_device *dev)
|
||||
static int au1100fb_drv_probe(struct platform_device *dev)
|
||||
{
|
||||
struct au1100fb_device *fbdev = NULL;
|
||||
struct resource *regs_res;
|
||||
|
||||
@@ -1673,7 +1673,7 @@ out:
|
||||
}
|
||||
|
||||
/* AU1200 LCD controller device driver */
|
||||
static int __devinit au1200fb_drv_probe(struct platform_device *dev)
|
||||
static int au1200fb_drv_probe(struct platform_device *dev)
|
||||
{
|
||||
struct au1200fb_device *fbdev;
|
||||
struct au1200fb_platdata *pd;
|
||||
@@ -1798,7 +1798,7 @@ failed:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int __devexit au1200fb_drv_remove(struct platform_device *dev)
|
||||
static int au1200fb_drv_remove(struct platform_device *dev)
|
||||
{
|
||||
struct au1200fb_platdata *pd = platform_get_drvdata(dev);
|
||||
struct au1200fb_device *fbdev;
|
||||
@@ -1876,7 +1876,7 @@ static struct platform_driver au1200fb_driver = {
|
||||
.pm = AU1200FB_PMOPS,
|
||||
},
|
||||
.probe = au1200fb_drv_probe,
|
||||
.remove = __devexit_p(au1200fb_drv_remove),
|
||||
.remove = au1200fb_drv_remove,
|
||||
};
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
@@ -156,7 +156,7 @@ static bool auok1900fb_need_refresh(struct auok190xfb_par *par)
|
||||
return (par->update_cnt > 10);
|
||||
}
|
||||
|
||||
static int __devinit auok1900fb_probe(struct platform_device *pdev)
|
||||
static int auok1900fb_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct auok190x_init_data init;
|
||||
struct auok190x_board *board;
|
||||
@@ -177,14 +177,14 @@ static int __devinit auok1900fb_probe(struct platform_device *pdev)
|
||||
return auok190x_common_probe(pdev, &init);
|
||||
}
|
||||
|
||||
static int __devexit auok1900fb_remove(struct platform_device *pdev)
|
||||
static int auok1900fb_remove(struct platform_device *pdev)
|
||||
{
|
||||
return auok190x_common_remove(pdev);
|
||||
}
|
||||
|
||||
static struct platform_driver auok1900fb_driver = {
|
||||
.probe = auok1900fb_probe,
|
||||
.remove = __devexit_p(auok1900fb_remove),
|
||||
.remove = auok1900fb_remove,
|
||||
.driver = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "auo_k1900fb",
|
||||
|
||||
@@ -209,7 +209,7 @@ static bool auok1901fb_need_refresh(struct auok190xfb_par *par)
|
||||
return (par->update_cnt > 10);
|
||||
}
|
||||
|
||||
static int __devinit auok1901fb_probe(struct platform_device *pdev)
|
||||
static int auok1901fb_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct auok190x_init_data init;
|
||||
struct auok190x_board *board;
|
||||
@@ -230,14 +230,14 @@ static int __devinit auok1901fb_probe(struct platform_device *pdev)
|
||||
return auok190x_common_probe(pdev, &init);
|
||||
}
|
||||
|
||||
static int __devexit auok1901fb_remove(struct platform_device *pdev)
|
||||
static int auok1901fb_remove(struct platform_device *pdev)
|
||||
{
|
||||
return auok190x_common_remove(pdev);
|
||||
}
|
||||
|
||||
static struct platform_driver auok1901fb_driver = {
|
||||
.probe = auok1901fb_probe,
|
||||
.remove = __devexit_p(auok1901fb_remove),
|
||||
.remove = auok1901fb_remove,
|
||||
.driver = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "auo_k1901fb",
|
||||
|
||||
@@ -773,8 +773,8 @@ EXPORT_SYMBOL_GPL(auok190x_pm);
|
||||
* Common probe and remove code
|
||||
*/
|
||||
|
||||
int __devinit auok190x_common_probe(struct platform_device *pdev,
|
||||
struct auok190x_init_data *init)
|
||||
int auok190x_common_probe(struct platform_device *pdev,
|
||||
struct auok190x_init_data *init)
|
||||
{
|
||||
struct auok190x_board *board = init->board;
|
||||
struct auok190xfb_par *par;
|
||||
@@ -1006,7 +1006,7 @@ err_reg:
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(auok190x_common_probe);
|
||||
|
||||
int __devexit auok190x_common_remove(struct platform_device *pdev)
|
||||
int auok190x_common_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct fb_info *info = platform_get_drvdata(pdev);
|
||||
struct auok190xfb_par *par = info->par;
|
||||
|
||||
@@ -87,8 +87,8 @@ static void set_vcomm(void)
|
||||
pr_err("i2c_smbus_write_byte_data fail: %d\n", nr);
|
||||
}
|
||||
|
||||
static int __devinit ad5280_probe(struct i2c_client *client,
|
||||
const struct i2c_device_id *id)
|
||||
static int ad5280_probe(struct i2c_client *client,
|
||||
const struct i2c_device_id *id)
|
||||
{
|
||||
int ret;
|
||||
if (!i2c_check_functionality(client->adapter,
|
||||
@@ -108,7 +108,7 @@ static int __devinit ad5280_probe(struct i2c_client *client,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __devexit ad5280_remove(struct i2c_client *client)
|
||||
static int ad5280_remove(struct i2c_client *client)
|
||||
{
|
||||
ad5280_client = NULL;
|
||||
return 0;
|
||||
@@ -126,7 +126,7 @@ static struct i2c_driver ad5280_driver = {
|
||||
.name = "bf537-lq035-ad5280",
|
||||
},
|
||||
.probe = ad5280_probe,
|
||||
.remove = __devexit_p(ad5280_remove),
|
||||
.remove = ad5280_remove,
|
||||
.id_table = ad5280_id,
|
||||
};
|
||||
|
||||
@@ -360,7 +360,7 @@ static int config_dma(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __devinit request_ports(void)
|
||||
static int request_ports(void)
|
||||
{
|
||||
u16 tmr_req[] = TIMERS;
|
||||
|
||||
@@ -443,7 +443,7 @@ static struct fb_var_screeninfo bfin_lq035_fb_defined = {
|
||||
.transp = {0, 0, 0},
|
||||
};
|
||||
|
||||
static struct fb_fix_screeninfo bfin_lq035_fb_fix __devinitdata = {
|
||||
static struct fb_fix_screeninfo bfin_lq035_fb_fix = {
|
||||
.id = KBUILD_MODNAME,
|
||||
.smem_len = ACTIVE_VIDEO_MEM_SIZE,
|
||||
.type = FB_TYPE_PACKED_PIXELS,
|
||||
@@ -686,7 +686,7 @@ static struct lcd_ops bfin_lcd_ops = {
|
||||
|
||||
static struct lcd_device *lcd_dev;
|
||||
|
||||
static int __devinit bfin_lq035_probe(struct platform_device *pdev)
|
||||
static int bfin_lq035_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct backlight_properties props;
|
||||
dma_addr_t dma_handle;
|
||||
@@ -816,7 +816,7 @@ out_ports:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int __devexit bfin_lq035_remove(struct platform_device *pdev)
|
||||
static int bfin_lq035_remove(struct platform_device *pdev)
|
||||
{
|
||||
if (fb_buffer != NULL)
|
||||
dma_free_coherent(NULL, TOTAL_VIDEO_MEM_SIZE, fb_buffer, 0);
|
||||
@@ -889,7 +889,7 @@ static int bfin_lq035_resume(struct platform_device *pdev)
|
||||
|
||||
static struct platform_driver bfin_lq035_driver = {
|
||||
.probe = bfin_lq035_probe,
|
||||
.remove = __devexit_p(bfin_lq035_remove),
|
||||
.remove = bfin_lq035_remove,
|
||||
.suspend = bfin_lq035_suspend,
|
||||
.resume = bfin_lq035_resume,
|
||||
.driver = {
|
||||
|
||||
@@ -497,7 +497,7 @@ static irqreturn_t bfin_bf54x_irq_error(int irq, void *dev_id)
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
static int __devinit bfin_bf54x_probe(struct platform_device *pdev)
|
||||
static int bfin_bf54x_probe(struct platform_device *pdev)
|
||||
{
|
||||
#ifndef NO_BL_SUPPORT
|
||||
struct backlight_properties props;
|
||||
@@ -686,7 +686,7 @@ out1:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int __devexit bfin_bf54x_remove(struct platform_device *pdev)
|
||||
static int bfin_bf54x_remove(struct platform_device *pdev)
|
||||
{
|
||||
|
||||
struct fb_info *fbinfo = platform_get_drvdata(pdev);
|
||||
@@ -754,7 +754,7 @@ static int bfin_bf54x_resume(struct platform_device *pdev)
|
||||
|
||||
static struct platform_driver bfin_bf54x_driver = {
|
||||
.probe = bfin_bf54x_probe,
|
||||
.remove = __devexit_p(bfin_bf54x_remove),
|
||||
.remove = bfin_bf54x_remove,
|
||||
.suspend = bfin_bf54x_suspend,
|
||||
.resume = bfin_bf54x_resume,
|
||||
.driver = {
|
||||
|
||||
@@ -137,7 +137,7 @@ static int lq035q1_control(struct spi_device *spi, unsigned char reg, unsigned s
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int __devinit lq035q1_spidev_probe(struct spi_device *spi)
|
||||
static int lq035q1_spidev_probe(struct spi_device *spi)
|
||||
{
|
||||
int ret;
|
||||
struct spi_control *ctl;
|
||||
@@ -358,8 +358,8 @@ static inline void bfin_lq035q1_free_ports(unsigned ppi16)
|
||||
gpio_free(P_IDENT(P_PPI0_FS3));
|
||||
}
|
||||
|
||||
static int __devinit bfin_lq035q1_request_ports(struct platform_device *pdev,
|
||||
unsigned ppi16)
|
||||
static int bfin_lq035q1_request_ports(struct platform_device *pdev,
|
||||
unsigned ppi16)
|
||||
{
|
||||
int ret;
|
||||
/* ANOMALY_05000400 - PPI Does Not Start Properly In Specific Mode:
|
||||
@@ -555,7 +555,7 @@ static irqreturn_t bfin_lq035q1_irq_error(int irq, void *dev_id)
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
static int __devinit bfin_lq035q1_probe(struct platform_device *pdev)
|
||||
static int bfin_lq035q1_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct bfin_lq035q1fb_info *info;
|
||||
struct fb_info *fbinfo;
|
||||
@@ -706,7 +706,7 @@ static int __devinit bfin_lq035q1_probe(struct platform_device *pdev)
|
||||
|
||||
info->spidrv.driver.name = DRIVER_NAME"-spi";
|
||||
info->spidrv.probe = lq035q1_spidev_probe;
|
||||
info->spidrv.remove = __devexit_p(lq035q1_spidev_remove);
|
||||
info->spidrv.remove = lq035q1_spidev_remove;
|
||||
info->spidrv.shutdown = lq035q1_spidev_shutdown;
|
||||
info->spidrv.suspend = lq035q1_spidev_suspend;
|
||||
info->spidrv.resume = lq035q1_spidev_resume;
|
||||
@@ -764,7 +764,7 @@ static int __devinit bfin_lq035q1_probe(struct platform_device *pdev)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int __devexit bfin_lq035q1_remove(struct platform_device *pdev)
|
||||
static int bfin_lq035q1_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct fb_info *fbinfo = platform_get_drvdata(pdev);
|
||||
struct bfin_lq035q1fb_info *info = fbinfo->par;
|
||||
@@ -845,7 +845,7 @@ static struct dev_pm_ops bfin_lq035q1_dev_pm_ops = {
|
||||
|
||||
static struct platform_driver bfin_lq035q1_driver = {
|
||||
.probe = bfin_lq035q1_probe,
|
||||
.remove = __devexit_p(bfin_lq035q1_remove),
|
||||
.remove = bfin_lq035q1_remove,
|
||||
.driver = {
|
||||
.name = DRIVER_NAME,
|
||||
#ifdef CONFIG_PM
|
||||
|
||||
@@ -418,7 +418,7 @@ static irqreturn_t bfin_t350mcqb_irq_error(int irq, void *dev_id)
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
static int __devinit bfin_t350mcqb_probe(struct platform_device *pdev)
|
||||
static int bfin_t350mcqb_probe(struct platform_device *pdev)
|
||||
{
|
||||
#ifndef NO_BL_SUPPORT
|
||||
struct backlight_properties props;
|
||||
@@ -583,7 +583,7 @@ out1:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int __devexit bfin_t350mcqb_remove(struct platform_device *pdev)
|
||||
static int bfin_t350mcqb_remove(struct platform_device *pdev)
|
||||
{
|
||||
|
||||
struct fb_info *fbinfo = platform_get_drvdata(pdev);
|
||||
@@ -658,7 +658,7 @@ static int bfin_t350mcqb_resume(struct platform_device *pdev)
|
||||
|
||||
static struct platform_driver bfin_t350mcqb_driver = {
|
||||
.probe = bfin_t350mcqb_probe,
|
||||
.remove = __devexit_p(bfin_t350mcqb_remove),
|
||||
.remove = bfin_t350mcqb_remove,
|
||||
.suspend = bfin_t350mcqb_suspend,
|
||||
.resume = bfin_t350mcqb_resume,
|
||||
.driver = {
|
||||
|
||||
@@ -88,7 +88,7 @@ static struct fb_var_screeninfo bfin_adv7393_fb_defined = {
|
||||
.transp = {0, 0, 0},
|
||||
};
|
||||
|
||||
static struct fb_fix_screeninfo bfin_adv7393_fb_fix __devinitdata = {
|
||||
static struct fb_fix_screeninfo bfin_adv7393_fb_fix = {
|
||||
.id = "BFIN ADV7393",
|
||||
.smem_len = 720 * 480 * 2,
|
||||
.type = FB_TYPE_PACKED_PIXELS,
|
||||
@@ -368,8 +368,8 @@ adv7393_write_proc(struct file *file, const char __user * buffer,
|
||||
return count;
|
||||
}
|
||||
|
||||
static int __devinit bfin_adv7393_fb_probe(struct i2c_client *client,
|
||||
const struct i2c_device_id *id)
|
||||
static int bfin_adv7393_fb_probe(struct i2c_client *client,
|
||||
const struct i2c_device_id *id)
|
||||
{
|
||||
int ret = 0;
|
||||
struct proc_dir_entry *entry;
|
||||
@@ -719,7 +719,7 @@ static int bfin_adv7393_fb_setcolreg(u_int regno, u_int red, u_int green,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __devexit bfin_adv7393_fb_remove(struct i2c_client *client)
|
||||
static int bfin_adv7393_fb_remove(struct i2c_client *client)
|
||||
{
|
||||
struct adv7393fb_device *fbdev = i2c_get_clientdata(client);
|
||||
|
||||
@@ -794,7 +794,7 @@ static struct i2c_driver bfin_adv7393_fb_driver = {
|
||||
#endif
|
||||
},
|
||||
.probe = bfin_adv7393_fb_probe,
|
||||
.remove = __devexit_p(bfin_adv7393_fb_remove),
|
||||
.remove = bfin_adv7393_fb_remove,
|
||||
.id_table = bfin_adv7393_id,
|
||||
};
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user