aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/efifb.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2009-05-05 10:12:55 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-05-05 10:12:55 +0100
commitf3831a592fe4332a70baad64a860b345398885b7 (patch)
treefd27b986295fe5a4f1c0924a804228f829a4c894 /drivers/video/efifb.c
parentASoC: TWL4030: Add VIBRA output (diff)
parentMerge branch 'fix/asoc' into topic/asoc (diff)
downloadlinux-dev-f3831a592fe4332a70baad64a860b345398885b7.tar.xz
linux-dev-f3831a592fe4332a70baad64a860b345398885b7.zip
Merge commit 'takashi/topic/asoc' into for-2.6.31
Diffstat (limited to 'drivers/video/efifb.c')
-rw-r--r--drivers/video/efifb.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/video/efifb.c b/drivers/video/efifb.c
index 0c5b9a9fd56f..8dea2bc92705 100644
--- a/drivers/video/efifb.c
+++ b/drivers/video/efifb.c
@@ -210,12 +210,15 @@ static int __init efifb_probe(struct platform_device *dev)
unsigned int size_total;
int request_succeeded = 0;
- printk(KERN_INFO "efifb: probing for efifb\n");
-
if (!screen_info.lfb_depth)
screen_info.lfb_depth = 32;
if (!screen_info.pages)
screen_info.pages = 1;
+ if (!screen_info.lfb_base) {
+ printk(KERN_DEBUG "efifb: invalid framebuffer address\n");
+ return -ENODEV;
+ }
+ printk(KERN_INFO "efifb: probing for efifb\n");
/* just assume they're all unset if any are */
if (!screen_info.blue_size) {