diff options
Diffstat (limited to 'sound/hda/core')
-rw-r--r-- | sound/hda/core/i915.c | 2 | ||||
-rw-r--r-- | sound/hda/core/stream.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sound/hda/core/i915.c b/sound/hda/core/i915.c index e9425213320e..44438c799f95 100644 --- a/sound/hda/core/i915.c +++ b/sound/hda/core/i915.c @@ -155,7 +155,7 @@ static int i915_gfx_present(struct pci_dev *hdac_pci) for_each_pci_dev(display_dev) { if (display_dev->vendor != PCI_VENDOR_ID_INTEL || - (display_dev->class >> 16) != PCI_BASE_CLASS_DISPLAY) + !pci_is_display(display_dev)) continue; if (pci_match_id(denylist, display_dev)) diff --git a/sound/hda/core/stream.c b/sound/hda/core/stream.c index e7f6208af5b0..4a87bef8834f 100644 --- a/sound/hda/core/stream.c +++ b/sound/hda/core/stream.c @@ -634,7 +634,7 @@ int snd_hdac_stream_set_params(struct hdac_stream *azx_dev, } EXPORT_SYMBOL_GPL(snd_hdac_stream_set_params); -static u64 azx_cc_read(const struct cyclecounter *cc) +static u64 azx_cc_read(struct cyclecounter *cc) { struct hdac_stream *azx_dev = container_of(cc, struct hdac_stream, cc); |