Permalink
Browse files

pxa168fb: Fix panic when DEBUG is enabled

Many calls to dev_dbg() attempt to dereference a variable that,
without this patch, is NULL.
  • Loading branch information...
Sean Cross
Sean Cross committed Apr 20, 2012
1 parent 61414fd commit 47cb86d8a5447c5662a73b5f2f0075649866be70
Showing with 1 addition and 0 deletions.
  1. +1 −0 drivers/video/pxa168fb.c
View
@@ -1228,6 +1228,7 @@ static int __init pxa168fb_probe(struct platform_device *pdev)
/*
* Initialise static fb parameters.
*/
+ info->dev = &pdev->dev;
info->flags = FBINFO_DEFAULT | FBINFO_PARTIAL_PAN_OK |
FBINFO_HWACCEL_XPAN | FBINFO_HWACCEL_YPAN;
info->node = -1;

0 comments on commit 47cb86d

Please sign in to comment.