diff --git a/sound/core/jack.c b/sound/core/jack.c index 68b098538827..b13b22e993c0 100644 --- a/sound/core/jack.c +++ b/sound/core/jack.c @@ -366,7 +366,6 @@ void snd_jack_report(struct snd_jack *jack, int status) { struct snd_jack_kctl *jack_kctl; #ifdef CONFIG_SND_JACK_INPUT_DEV - struct input_dev *idev; int i; #endif @@ -385,14 +384,14 @@ void snd_jack_report(struct snd_jack *jack, int status) int testbit = SND_JACK_BTN_0 >> i; if (jack->type & testbit) - input_report_key(idev, jack->key[i], + input_report_key(jack->input_dev, jack->key[i], status & testbit); } for (i = 0; i < ARRAY_SIZE(jack_switch_types); i++) { int testbit = 1 << i; if (jack->type & testbit) - input_report_switch(idev, + input_report_switch(jack->input_dev, jack_switch_types[i], status & testbit); }