summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sound/pci/hda/hda_tegra.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/pci/hda/hda_tegra.c b/sound/pci/hda/hda_tegra.c
index 801e9fb4a467..db0bb50fa5b9 100644
--- a/sound/pci/hda/hda_tegra.c
+++ b/sound/pci/hda/hda_tegra.c
@@ -439,6 +439,10 @@ static int hda_tegra_create(struct snd_card *card,
chip->single_cmd = false;
chip->snoop = true;
+ err = azx_bus_init(chip, NULL, &hda_tegra_io_ops);
+ if (err < 0)
+ return err;
+
err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops);
if (err < 0) {
dev_err(card->dev, "Error creating device\n");
@@ -475,10 +479,6 @@ static int hda_tegra_probe(struct platform_device *pdev)
return err;
}
- err = azx_bus_init(chip, NULL, &hda_tegra_io_ops);
- if (err < 0)
- goto out_free;
-
err = hda_tegra_create(card, driver_flags, hda);
if (err < 0)
goto out_free;