aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/oxygen/oxygen.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2009-02-19 02:37:13 -0500
committerTakashi Iwai <tiwai@suse.de>2009-02-19 04:22:22 -0500
commitbb71858853a5c9616eea98512f4075d4f081154d (patch)
tree62447849ac3a255219029d99ee29557ad9c8de76 /sound/pci/oxygen/oxygen.c
parenta5e0e970c06065a14844b406a0c2a59776a1ccc6 (diff)
sound: oxygen: make the owner module a parameter of the probe function
Move the owner field out of the oxygen_model structure and make it a parameter of oxygen_pci_probe(), because the actual owner module does not depend on the card model. Furthermore, moving it out of the model structure allows us to create the card structure before the actual model is known. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/oxygen/oxygen.c')
-rw-r--r--sound/pci/oxygen/oxygen.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/pci/oxygen/oxygen.c b/sound/pci/oxygen/oxygen.c
index de999c6d6dd3..12b6c2137d50 100644
--- a/sound/pci/oxygen/oxygen.c
+++ b/sound/pci/oxygen/oxygen.c
@@ -315,7 +315,6 @@ static const struct oxygen_model model_generic = {
315 .shortname = "C-Media CMI8788", 315 .shortname = "C-Media CMI8788",
316 .longname = "C-Media Oxygen HD Audio", 316 .longname = "C-Media Oxygen HD Audio",
317 .chip = "CMI8788", 317 .chip = "CMI8788",
318 .owner = THIS_MODULE,
319 .probe = generic_probe, 318 .probe = generic_probe,
320 .init = generic_init, 319 .init = generic_init,
321 .cleanup = generic_cleanup, 320 .cleanup = generic_cleanup,
@@ -353,7 +352,7 @@ static int __devinit generic_oxygen_probe(struct pci_dev *pci,
353 ++dev; 352 ++dev;
354 return -ENOENT; 353 return -ENOENT;
355 } 354 }
356 err = oxygen_pci_probe(pci, index[dev], id[dev], 355 err = oxygen_pci_probe(pci, index[dev], id[dev], THIS_MODULE,
357 &model_generic, pci_id->driver_data); 356 &model_generic, pci_id->driver_data);
358 if (err >= 0) 357 if (err >= 0)
359 ++dev; 358 ++dev;