Drivers: misc: 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>
Tento commit je obsažen v:
@@ -37,7 +37,7 @@
|
||||
|
||||
#define CFAG12864BFB_NAME "cfag12864bfb"
|
||||
|
||||
static struct fb_fix_screeninfo cfag12864bfb_fix __devinitdata = {
|
||||
static struct fb_fix_screeninfo cfag12864bfb_fix = {
|
||||
.id = "cfag12864b",
|
||||
.type = FB_TYPE_PACKED_PIXELS,
|
||||
.visual = FB_VISUAL_MONO10,
|
||||
@@ -48,7 +48,7 @@ static struct fb_fix_screeninfo cfag12864bfb_fix __devinitdata = {
|
||||
.accel = FB_ACCEL_NONE,
|
||||
};
|
||||
|
||||
static struct fb_var_screeninfo cfag12864bfb_var __devinitdata = {
|
||||
static struct fb_var_screeninfo cfag12864bfb_var = {
|
||||
.xres = CFAG12864B_WIDTH,
|
||||
.yres = CFAG12864B_HEIGHT,
|
||||
.xres_virtual = CFAG12864B_WIDTH,
|
||||
@@ -80,7 +80,7 @@ static struct fb_ops cfag12864bfb_ops = {
|
||||
.fb_mmap = cfag12864bfb_mmap,
|
||||
};
|
||||
|
||||
static int __devinit cfag12864bfb_probe(struct platform_device *device)
|
||||
static int cfag12864bfb_probe(struct platform_device *device)
|
||||
{
|
||||
int ret = -EINVAL;
|
||||
struct fb_info *info = framebuffer_alloc(0, &device->dev);
|
||||
@@ -114,7 +114,7 @@ none:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int __devexit cfag12864bfb_remove(struct platform_device *device)
|
||||
static int cfag12864bfb_remove(struct platform_device *device)
|
||||
{
|
||||
struct fb_info *info = platform_get_drvdata(device);
|
||||
|
||||
@@ -128,7 +128,7 @@ static int __devexit cfag12864bfb_remove(struct platform_device *device)
|
||||
|
||||
static struct platform_driver cfag12864bfb_driver = {
|
||||
.probe = cfag12864bfb_probe,
|
||||
.remove = __devexit_p(cfag12864bfb_remove),
|
||||
.remove = cfag12864bfb_remove,
|
||||
.driver = {
|
||||
.name = CFAG12864BFB_NAME,
|
||||
},
|
||||
|
Odkázat v novém úkolu
Zablokovat Uživatele