summaryrefslogtreecommitdiffstats
path: root/drivers/input/joystick/maplecontrol.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/joystick/maplecontrol.c')
-rw-r--r--drivers/input/joystick/maplecontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/joystick/maplecontrol.c b/drivers/input/joystick/maplecontrol.c
index 3833ac47b2b8..8b54f9b18e7c 100644
--- a/drivers/input/joystick/maplecontrol.c
+++ b/drivers/input/joystick/maplecontrol.c
@@ -102,7 +102,7 @@ static int probe_maple_controller(struct device *dev)
struct input_dev *idev;
unsigned long data = be32_to_cpu(mdev->devinfo.function_data[0]);
- pad = kzalloc(sizeof(struct dc_pad), GFP_KERNEL);
+ pad = kzalloc(sizeof(*pad), GFP_KERNEL);
idev = input_allocate_device();
if (!pad || !idev) {
error = -ENOMEM;