From: wuhao Date: Wed, 14 Nov 2012 01:55:14 +0000 (+0800) Subject: rk292x sitronix: while perform direction_otation ,determine whether pdata is NULL X-Git-Tag: firefly_0821_release~8226 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2b8c15e987f4cf35a5ad51d7562dce3552166537;p=firefly-linux-kernel-4.4.55.git rk292x sitronix: while perform direction_otation ,determine whether pdata is NULL --- 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 ;