summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2010-01-02 11:16:20 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-01-02 11:16:20 +0000
commit1df4bb4af42459a4a10e7b21794a6f44463534e6 (patch)
treedcea2c5f7035a5fc2304b25614d7fa12fe073c58 /drivers
parentcd6e125c58ae1561bedb6ea6f70b00d6c2599d62 (diff)
parent91a86a964f0773fdf466fe02577c8494ca8e2083 (diff)
downloadlinux-1df4bb4af42459a4a10e7b21794a6f44463534e6.tar.bz2
Merge branch 'fix' of git://git.kernel.org/pub/scm/linux/kernel/git/ycmiao/pxa-linux-2.6
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/pxafb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c
index 415858b421b3..825b665245bb 100644
--- a/drivers/video/pxafb.c
+++ b/drivers/video/pxafb.c
@@ -1221,9 +1221,9 @@ static void setup_smart_timing(struct pxafb_info *fbi,
static int pxafb_smart_thread(void *arg)
{
struct pxafb_info *fbi = arg;
- struct pxafb_mach_info *inf;
+ struct pxafb_mach_info *inf = fbi->dev->platform_data;
- if (!fbi || !fbi->dev->platform_data->smart_update) {
+ if (!inf->smart_update) {
pr_err("%s: not properly initialized, thread terminated\n",
__func__);
return -EINVAL;