aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2010-06-22 00:11:31 +0200
committerLars-Peter Clausen <lars@metafoo.de>2010-06-23 15:25:07 +0200
commitc034d61116a84168bdc4343848f09280b89ec4c7 (patch)
treef16da6e750534490ca4e37e3acfa4fd43d2497a7
parentb44d4e355e2ab380c08adbebd0a2062ec9e198ae (diff)
glamo-fb: unmap/free everything mapped/allocated
-rw-r--r--drivers/mfd/glamo/glamo-fb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mfd/glamo/glamo-fb.c b/drivers/mfd/glamo/glamo-fb.c
index 29c16f019aa..24ff328579a 100644
--- a/drivers/mfd/glamo/glamo-fb.c
+++ b/drivers/mfd/glamo/glamo-fb.c
@@ -241,7 +241,7 @@ static void reg_set_bit_mask(struct glamofb_handle *glamo,
#define GLAMO_LCD_HV_RETR_DISP_START_MASK 0x03FF
#define GLAMO_LCD_HV_RETR_DISP_END_MASK 0x03FF
-/* the caller has to enxure lock_cmd is held and we are in cmd mode */
+/* the caller has to ensure lock_cmd is held and we are in cmd mode */
static void __rotate_lcd(struct glamofb_handle *glamo, __u32 rotation)
{
int glamo_rot;
@@ -895,7 +895,10 @@ static int glamofb_remove(struct platform_device *pdev)
struct glamofb_handle *glamofb = platform_get_drvdata(pdev);
platform_set_drvdata(pdev, NULL);
+ iounmap(glamofb->fb->screen_base);
iounmap(glamofb->base);
+ release_mem_region(glamofb->fb_res->start,
+ resource_size(glamofb->fb_res));
release_mem_region(glamofb->reg->start, resource_size(glamofb->reg));
framebuffer_release(glamofb->fb);