|
@@ -63,7 +63,7 @@ static int snd_jack_dev_register(struct snd_device *device)
|
|
|
|
|
|
/* Default to the sound card device. */
|
|
|
if (!jack->input_dev->dev.parent)
|
|
|
- jack->input_dev->dev.parent = card->dev;
|
|
|
+ jack->input_dev->dev.parent = snd_card_get_device_link(card);
|
|
|
|
|
|
err = input_register_device(jack->input_dev);
|
|
|
if (err == 0)
|