summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/hecubafb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fbdev/hecubafb.c')
-rw-r--r--drivers/video/fbdev/hecubafb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/video/fbdev/hecubafb.c b/drivers/video/fbdev/hecubafb.c
index 72308d4e0c22..7ce0a16ce8b9 100644
--- a/drivers/video/fbdev/hecubafb.c
+++ b/drivers/video/fbdev/hecubafb.c
@@ -279,7 +279,7 @@ err_videomem_alloc:
return retval;
}
-static int hecubafb_remove(struct platform_device *dev)
+static void hecubafb_remove(struct platform_device *dev)
{
struct fb_info *info = platform_get_drvdata(dev);
@@ -293,12 +293,11 @@ static int hecubafb_remove(struct platform_device *dev)
module_put(par->board->owner);
framebuffer_release(info);
}
- return 0;
}
static struct platform_driver hecubafb_driver = {
.probe = hecubafb_probe,
- .remove = hecubafb_remove,
+ .remove_new = hecubafb_remove,
.driver = {
.name = "hecubafb",
},