Input: gamecon - reference correct input device in NES mode

We moved input devices from 'struct gc' to individial pads (struct
gc-pad), but gc_nes_process_packet() was still trying to use old
ones and crashing.

Cc: stable@kernel.org
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

+1 -2
+1 -2
drivers/input/joystick/gamecon.c
··· 89 struct gc { 90 struct pardevice *pd; 91 struct gc_pad pads[GC_MAX_DEVICES]; 92 - struct input_dev *dev[GC_MAX_DEVICES]; 93 struct timer_list timer; 94 int pad_count[GC_MAX]; 95 int used; ··· 386 for (i = 0; i < GC_MAX_DEVICES; i++) { 387 388 pad = &gc->pads[i]; 389 - dev = gc->dev[i]; 390 s = gc_status_bit[i]; 391 392 switch (pad->type) {
··· 89 struct gc { 90 struct pardevice *pd; 91 struct gc_pad pads[GC_MAX_DEVICES]; 92 struct timer_list timer; 93 int pad_count[GC_MAX]; 94 int used; ··· 387 for (i = 0; i < GC_MAX_DEVICES; i++) { 388 389 pad = &gc->pads[i]; 390 + dev = pad->dev; 391 s = gc_status_bit[i]; 392 393 switch (pad->type) {