summaryrefslogtreecommitdiff
path: root/sound/pci/als4000.c
diff options
context:
space:
mode:
authorMaxime Ripard <maxime@cerno.tech>2022-05-03 11:53:42 +0200
committerMaxime Ripard <maxime@cerno.tech>2022-05-03 11:53:42 +0200
commitb812f646bb818ca0e1806072eb7f0006f3a65dde (patch)
tree3ba2134dcefd8127f5ad286e0fe1135588fbd0b3 /sound/pci/als4000.c
parenta5fc012e6ee75a899173398573e77207542f588a (diff)
parente954d2c94d007afe487044ecfa48f2518643df0e (diff)
downloadlinux-b812f646bb818ca0e1806072eb7f0006f3a65dde.tar.gz
Merge drm/drm-next into drm-misc-next
Christian needs a backmerge to avoid a merge conflict for amdgpu. Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Diffstat (limited to 'sound/pci/als4000.c')
-rw-r--r--sound/pci/als4000.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sound/pci/als4000.c b/sound/pci/als4000.c
index 535eccd124be..f33aeb692a11 100644
--- a/sound/pci/als4000.c
+++ b/sound/pci/als4000.c
@@ -806,8 +806,8 @@ static void snd_card_als4000_free( struct snd_card *card )
snd_als4000_free_gameport(acard);
}
-static int snd_card_als4000_probe(struct pci_dev *pci,
- const struct pci_device_id *pci_id)
+static int __snd_card_als4000_probe(struct pci_dev *pci,
+ const struct pci_device_id *pci_id)
{
static int dev;
struct snd_card *card;
@@ -930,6 +930,12 @@ static int snd_card_als4000_probe(struct pci_dev *pci,
return 0;
}
+static int snd_card_als4000_probe(struct pci_dev *pci,
+ const struct pci_device_id *pci_id)
+{
+ return snd_card_free_on_error(&pci->dev, __snd_card_als4000_probe(pci, pci_id));
+}
+
#ifdef CONFIG_PM_SLEEP
static int snd_als4000_suspend(struct device *dev)
{