From 2b8c15e987f4cf35a5ad51d7562dce3552166537 Mon Sep 17 00:00:00 2001 From: wuhao Date: Wed, 14 Nov 2012 09:55:14 +0800 Subject: [PATCH] rk292x sitronix: while perform direction_otation ,determine whether pdata is NULL --- drivers/input/touchscreen/sitronix_ts_a720.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/sitronix_ts_a720.c b/drivers/input/touchscreen/sitronix_ts_a720.c index 5ed48608d74d..d0ba590c6d19 100755 --- a/drivers/input/touchscreen/sitronix_ts_a720.c +++ b/drivers/input/touchscreen/sitronix_ts_a720.c @@ -827,7 +827,7 @@ static void sitronix_ts_work_func(struct work_struct *work) input_report_abs(ts->input_dev, ABS_MT_TRACKING_ID, i); input_report_abs(ts->input_dev, ABS_MT_TOUCH_MAJOR, 200); - if(pdata->direction_otation) + if( pdata && (pdata->direction_otation) ) { int temp_x , temp_y ; temp_x = MTDStructure[i].Pixel_X ; -- 2.34.1