summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/pcap_ts.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/touchscreen/pcap_ts.c')
-rw-r--r--drivers/input/touchscreen/pcap_ts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/pcap_ts.c b/drivers/input/touchscreen/pcap_ts.c
index 083206a3457b..05e90b36246f 100644
--- a/drivers/input/touchscreen/pcap_ts.c
+++ b/drivers/input/touchscreen/pcap_ts.c
@@ -138,7 +138,7 @@ static int pcap_ts_probe(struct platform_device *pdev)
struct pcap_ts *pcap_ts;
int err = -ENOMEM;
- pcap_ts = kzalloc(sizeof(*pcap_ts), GFP_KERNEL);
+ pcap_ts = kzalloc_obj(*pcap_ts, GFP_KERNEL);
if (!pcap_ts)
return err;