diff options
Diffstat (limited to 'drivers/input/joystick/maplecontrol.c')
-rw-r--r-- | drivers/input/joystick/maplecontrol.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/joystick/maplecontrol.c b/drivers/input/joystick/maplecontrol.c index 59c10ec5a2a1..8aa6e4c497da 100644 --- a/drivers/input/joystick/maplecontrol.c +++ b/drivers/input/joystick/maplecontrol.c | |||
@@ -61,7 +61,7 @@ static void dc_pad_callback(struct mapleq *mq) | |||
61 | 61 | ||
62 | static int dc_pad_open(struct input_dev *dev) | 62 | static int dc_pad_open(struct input_dev *dev) |
63 | { | 63 | { |
64 | struct dc_pad *pad = dev->dev.platform_data; | 64 | struct dc_pad *pad = dev_get_platdata(&dev->dev); |
65 | 65 | ||
66 | maple_getcond_callback(pad->mdev, dc_pad_callback, HZ/20, | 66 | maple_getcond_callback(pad->mdev, dc_pad_callback, HZ/20, |
67 | MAPLE_FUNC_CONTROLLER); | 67 | MAPLE_FUNC_CONTROLLER); |
@@ -71,7 +71,7 @@ static int dc_pad_open(struct input_dev *dev) | |||
71 | 71 | ||
72 | static void dc_pad_close(struct input_dev *dev) | 72 | static void dc_pad_close(struct input_dev *dev) |
73 | { | 73 | { |
74 | struct dc_pad *pad = dev->dev.platform_data; | 74 | struct dc_pad *pad = dev_get_platdata(&dev->dev); |
75 | 75 | ||
76 | maple_getcond_callback(pad->mdev, dc_pad_callback, 0, | 76 | maple_getcond_callback(pad->mdev, dc_pad_callback, 0, |
77 | MAPLE_FUNC_CONTROLLER); | 77 | MAPLE_FUNC_CONTROLLER); |