summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/touchright.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/touchscreen/touchright.c')
-rw-r--r--drivers/input/touchscreen/touchright.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/touchright.c b/drivers/input/touchscreen/touchright.c
index 3cd58a13e44f..30ba97bd00a1 100644
--- a/drivers/input/touchscreen/touchright.c
+++ b/drivers/input/touchscreen/touchright.c
@@ -102,7 +102,7 @@ static int tr_connect(struct serio *serio, struct serio_driver *drv)
struct input_dev *input_dev;
int err;
- tr = kzalloc(sizeof(struct tr), GFP_KERNEL);
+ tr = kzalloc(sizeof(*tr), GFP_KERNEL);
input_dev = input_allocate_device();
if (!tr || !input_dev) {
err = -ENOMEM;