Commit ed9d0b62 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Remove dependency on bus->pci in hda_beep.c

The default parent device can be obtained directly via card object, so
we don't need to rely on pci->dev.parent.  Since there is no access to
pci_dev, we can reduce the inclusion of linux/pci.h, too.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 115b94d5
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
*/ */
#include <linux/input.h> #include <linux/input.h>
#include <linux/pci.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/workqueue.h> #include <linux/workqueue.h>
#include <linux/export.h> #include <linux/export.h>
...@@ -167,7 +166,7 @@ static int snd_hda_do_attach(struct hda_beep *beep) ...@@ -167,7 +166,7 @@ static int snd_hda_do_attach(struct hda_beep *beep)
input_dev->evbit[0] = BIT_MASK(EV_SND); input_dev->evbit[0] = BIT_MASK(EV_SND);
input_dev->sndbit[0] = BIT_MASK(SND_BELL) | BIT_MASK(SND_TONE); input_dev->sndbit[0] = BIT_MASK(SND_BELL) | BIT_MASK(SND_TONE);
input_dev->event = snd_hda_beep_event; input_dev->event = snd_hda_beep_event;
input_dev->dev.parent = &codec->bus->pci->dev; input_dev->dev.parent = codec->bus->card->dev;
input_set_drvdata(input_dev, beep); input_set_drvdata(input_dev, beep);
err = input_register_device(input_dev); err = input_register_device(input_dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment