projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
354fcf6
)
rk2926 sdk: fix 'tp crash'
author
kfx
<kfx@rock-chips.com>
Fri, 26 Oct 2012 09:39:47 +0000
(17:39 +0800)
committer
kfx
<kfx@rock-chips.com>
Fri, 26 Oct 2012 09:39:47 +0000
(17:39 +0800)
drivers/input/touchscreen/sitronix_ts_a720.c
patch
|
blob
|
history
diff --git
a/drivers/input/touchscreen/sitronix_ts_a720.c
b/drivers/input/touchscreen/sitronix_ts_a720.c
index 5a56dbdd0f674cc428b010030feee63cbc323e15..f4e4a7a9f0c351b1141dd4083db1835a557a42e2 100755
(executable)
--- 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;