diff mbox

video: ffb: fix ffb_probe error path

Message ID 1297177125.2343.3.camel@phoenix (mailing list archive)
State Accepted
Commit 7b0e278519eba8050f2b37d7c408958745f30ecd
Headers show

Commit Message

axel lin Feb. 8, 2011, 2:58 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/video/ffb.c b/drivers/video/ffb.c
index 6739b2a..b5d6a46 100644
--- a/drivers/video/ffb.c
+++ b/drivers/video/ffb.c
@@ -1011,7 +1011,7 @@  out_dealloc_cmap:
 	fb_dealloc_cmap(&info->cmap);
 
 out_unmap_dac:
-	of_iounmap(&op->resource[2], par->fbc, sizeof(struct ffb_fbc));
+	of_iounmap(&op->resource[1], par->dac, sizeof(struct ffb_dac));
 
 out_unmap_fbc:
 	of_iounmap(&op->resource[2], par->fbc, sizeof(struct ffb_fbc));