diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2009-02-19 07:37:13 (GMT) |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-02-19 09:22:22 (GMT) |
commit | bb71858853a5c9616eea98512f4075d4f081154d (patch) | |
tree | 62447849ac3a255219029d99ee29557ad9c8de76 /sound/pci/oxygen/oxygen.h | |
parent | a5e0e970c06065a14844b406a0c2a59776a1ccc6 (diff) | |
download | linux-bb71858853a5c9616eea98512f4075d4f081154d.tar.xz |
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.h')
-rw-r--r-- | sound/pci/oxygen/oxygen.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/oxygen/oxygen.h b/sound/pci/oxygen/oxygen.h index 19107c6..268bff4 100644 --- a/sound/pci/oxygen/oxygen.h +++ b/sound/pci/oxygen/oxygen.h @@ -62,7 +62,6 @@ struct oxygen_model { const char *shortname; const char *longname; const char *chip; - struct module *owner; int (*probe)(struct oxygen *chip, unsigned long driver_data); void (*init)(struct oxygen *chip); int (*control_filter)(struct snd_kcontrol_new *template); @@ -134,6 +133,7 @@ struct oxygen { /* oxygen_lib.c */ int oxygen_pci_probe(struct pci_dev *pci, int index, char *id, + struct module *owner, const struct oxygen_model *model, unsigned long driver_data); void oxygen_pci_remove(struct pci_dev *pci); |