|
@@ -1221,13 +1221,14 @@ static void setup_smart_timing(struct pxafb_info *fbi,
|
|
static int pxafb_smart_thread(void *arg)
|
|
static int pxafb_smart_thread(void *arg)
|
|
{
|
|
{
|
|
struct pxafb_info *fbi = arg;
|
|
struct pxafb_info *fbi = arg;
|
|
- struct pxafb_mach_info *inf = fbi->dev->platform_data;
|
|
|
|
|
|
+ struct pxafb_mach_info *inf;
|
|
|
|
|
|
- if (!fbi || !inf->smart_update) {
|
|
|
|
|
|
+ if (!fbi || !fbi->dev->platform_data->smart_update) {
|
|
pr_err("%s: not properly initialized, thread terminated\n",
|
|
pr_err("%s: not properly initialized, thread terminated\n",
|
|
__func__);
|
|
__func__);
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
|
|
+ inf = fbi->dev->platform_data;
|
|
|
|
|
|
pr_debug("%s(): task starting\n", __func__);
|
|
pr_debug("%s(): task starting\n", __func__);
|
|
|
|
|