From: kfx Date: Fri, 26 Oct 2012 09:39:47 +0000 (+0800) Subject: rk2926 sdk: fix 'tp crash' X-Git-Tag: firefly_0821_release~8307 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b69026678fe70127a3da6d65e4fcef55ae9d1617;p=firefly-linux-kernel-4.4.55.git rk2926 sdk: fix 'tp crash' --- diff --git a/drivers/input/touchscreen/sitronix_ts_a720.c b/drivers/input/touchscreen/sitronix_ts_a720.c index 5a56dbdd0f67..f4e4a7a9f0c3 100755 --- a/drivers/input/touchscreen/sitronix_ts_a720.c +++ b/drivers/input/touchscreen/sitronix_ts_a720.c @@ -926,6 +926,7 @@ static int sitronix_ts_probe(struct i2c_client *client, const struct i2c_device_ client->irq = irq_cfg.gpio; tp_hw_init(); #else + pdata = client->dev.platform_data; if(pdata->init_platform_hw) pdata->init_platform_hw(); #endif @@ -949,7 +950,6 @@ static int sitronix_ts_probe(struct i2c_client *client, const struct i2c_device_ if(client->irq != INVALID_GPIO) ts->irq = gpio_to_irq(client->irq); i2c_set_clientdata(client, ts); - pdata = client->dev.platform_data; #if 0 if(pdata->reset_ic){ ts->reset_ic = pdata->reset_ic;