aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/oxygen/oxygen.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/pci/oxygen/oxygen.c b/sound/pci/oxygen/oxygen.c
index af6e8026cb17..4f809bdc75e1 100644
--- a/sound/pci/oxygen/oxygen.c
+++ b/sound/pci/oxygen/oxygen.c
@@ -386,7 +386,7 @@ static int __devinit generic_oxygen_probe(struct pci_dev *pci,
386 const struct pci_device_id *pci_id) 386 const struct pci_device_id *pci_id)
387{ 387{
388 static int dev; 388 static int dev;
389 const struct oxygen_model *model; 389 int is_meridian;
390 int err; 390 int err;
391 391
392 if (dev >= SNDRV_CARDS) 392 if (dev >= SNDRV_CARDS)
@@ -395,8 +395,9 @@ static int __devinit generic_oxygen_probe(struct pci_dev *pci,
395 ++dev; 395 ++dev;
396 return -ENOENT; 396 return -ENOENT;
397 } 397 }
398 model = pci_id->driver_data ? &model_meridian : &model_generic; 398 is_meridian = pci_id->driver_data;
399 err = oxygen_pci_probe(pci, index[dev], id[dev], 1, model); 399 err = oxygen_pci_probe(pci, index[dev], id[dev], is_meridian,
400 is_meridian ? &model_meridian : &model_generic);
400 if (err >= 0) 401 if (err >= 0)
401 ++dev; 402 ++dev;
402 return err; 403 return err;