diff options
author | Paul Mackerras <paulus@samba.org> | 2007-05-07 23:37:51 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-05-07 23:37:51 -0400 |
commit | 02bbc0f09c90cefdb2837605c96a66c5ce4ba2e1 (patch) | |
tree | 04ef573cd4de095c500c9fc3477f4278c0b36300 /drivers/input/joystick/grip.c | |
parent | 7487a2245b8841c77ba9db406cf99a483b9334e9 (diff) | |
parent | 5b94f675f57e4ff16c8fda09088d7480a84dcd91 (diff) |
Merge branch 'linux-2.6'
Diffstat (limited to 'drivers/input/joystick/grip.c')
-rw-r--r-- | drivers/input/joystick/grip.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/input/joystick/grip.c b/drivers/input/joystick/grip.c index 17a90c436de8..73eb5ab6f140 100644 --- a/drivers/input/joystick/grip.c +++ b/drivers/input/joystick/grip.c | |||
@@ -285,7 +285,7 @@ static void grip_poll(struct gameport *gameport) | |||
285 | 285 | ||
286 | static int grip_open(struct input_dev *dev) | 286 | static int grip_open(struct input_dev *dev) |
287 | { | 287 | { |
288 | struct grip *grip = dev->private; | 288 | struct grip *grip = input_get_drvdata(dev); |
289 | 289 | ||
290 | gameport_start_polling(grip->gameport); | 290 | gameport_start_polling(grip->gameport); |
291 | return 0; | 291 | return 0; |
@@ -293,7 +293,7 @@ static int grip_open(struct input_dev *dev) | |||
293 | 293 | ||
294 | static void grip_close(struct input_dev *dev) | 294 | static void grip_close(struct input_dev *dev) |
295 | { | 295 | { |
296 | struct grip *grip = dev->private; | 296 | struct grip *grip = input_get_drvdata(dev); |
297 | 297 | ||
298 | gameport_stop_polling(grip->gameport); | 298 | gameport_stop_polling(grip->gameport); |
299 | } | 299 | } |
@@ -363,8 +363,9 @@ static int grip_connect(struct gameport *gameport, struct gameport_driver *drv) | |||
363 | input_dev->id.vendor = GAMEPORT_ID_VENDOR_GRAVIS; | 363 | input_dev->id.vendor = GAMEPORT_ID_VENDOR_GRAVIS; |
364 | input_dev->id.product = grip->mode[i]; | 364 | input_dev->id.product = grip->mode[i]; |
365 | input_dev->id.version = 0x0100; | 365 | input_dev->id.version = 0x0100; |
366 | input_dev->cdev.dev = &gameport->dev; | 366 | input_dev->dev.parent = &gameport->dev; |
367 | input_dev->private = grip; | 367 | |
368 | input_set_drvdata(input_dev, grip); | ||
368 | 369 | ||
369 | input_dev->open = grip_open; | 370 | input_dev->open = grip_open; |
370 | input_dev->close = grip_close; | 371 | input_dev->close = grip_close; |