summaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/arcfb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fbdev/arcfb.c')
-rw-r--r--drivers/video/fbdev/arcfb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/video/fbdev/arcfb.c b/drivers/video/fbdev/arcfb.c
index 3d926c3ada73..9aaea3be8281 100644
--- a/drivers/video/fbdev/arcfb.c
+++ b/drivers/video/fbdev/arcfb.c
@@ -594,7 +594,7 @@ err_fb_alloc:
return retval;
}
-static int arcfb_remove(struct platform_device *dev)
+static void arcfb_remove(struct platform_device *dev)
{
struct fb_info *info = platform_get_drvdata(dev);
@@ -605,12 +605,11 @@ static int arcfb_remove(struct platform_device *dev)
vfree(info->screen_buffer);
framebuffer_release(info);
}
- return 0;
}
static struct platform_driver arcfb_driver = {
.probe = arcfb_probe,
- .remove = arcfb_remove,
+ .remove_new = arcfb_remove,
.driver = {
.name = "arcfb",
},