diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-05-02 13:56:48 +0200 | 
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-05-02 13:56:48 +0200 | 
| commit | 0e509f537f8ddd89f237e62f77818dbdbc8be395 (patch) | |
| tree | 4e747a1cad81d0c085d435923366bcce30484bc8 /sound/pci/oxygen/oxygen_lib.c | |
| parent | f8ae07f4b8bfde0f33761e1a1aaee45a4e85e9d6 (diff) | |
| parent | 672c0c5173427e6b3e2a9bbb7be51ceeec78093a (diff) | |
Merge 5.18-rc5 into driver-core-next
We need the kernfs/driver core fixes in here as well.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/pci/oxygen/oxygen_lib.c')
| -rw-r--r-- | sound/pci/oxygen/oxygen_lib.c | 12 | 
1 files changed, 11 insertions, 1 deletions
diff --git a/sound/pci/oxygen/oxygen_lib.c b/sound/pci/oxygen/oxygen_lib.c index 4fb3f2484fdb..92ffe9dc20c5 100644 --- a/sound/pci/oxygen/oxygen_lib.c +++ b/sound/pci/oxygen/oxygen_lib.c @@ -576,7 +576,7 @@ static void oxygen_card_free(struct snd_card *card)  	mutex_destroy(&chip->mutex);  } -int oxygen_pci_probe(struct pci_dev *pci, int index, char *id, +static int __oxygen_pci_probe(struct pci_dev *pci, int index, char *id,  		     struct module *owner,  		     const struct pci_device_id *ids,  		     int (*get_model)(struct oxygen *chip, @@ -701,6 +701,16 @@ int oxygen_pci_probe(struct pci_dev *pci, int index, char *id,  	pci_set_drvdata(pci, card);  	return 0;  } + +int oxygen_pci_probe(struct pci_dev *pci, int index, char *id, +		     struct module *owner, +		     const struct pci_device_id *ids, +		     int (*get_model)(struct oxygen *chip, +				      const struct pci_device_id *id)) +{ +	return snd_card_free_on_error(&pci->dev, +				      __oxygen_pci_probe(pci, index, id, owner, ids, get_model)); +}  EXPORT_SYMBOL(oxygen_pci_probe);  #ifdef CONFIG_PM_SLEEP  | 
