summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sound/soc/tegra/tegra_aic326x.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/sound/soc/tegra/tegra_aic326x.c b/sound/soc/tegra/tegra_aic326x.c
index 80ef3abc1de0..f9a925754ca6 100644
--- a/sound/soc/tegra/tegra_aic326x.c
+++ b/sound/soc/tegra/tegra_aic326x.c
@@ -1045,6 +1045,16 @@ static __devinit int tegra_aic326x_driver_probe(struct platform_device *pdev)
tegra_aic326x_i2s_dai_name[machine->codec_info[BT_SCO].i2s_id];
#endif
+#ifdef CONFIG_SWITCH
+ /* Add h2w switch class support */
+ ret = switch_dev_register(&aic326x_wired_switch_dev);
+ if (ret < 0) {
+ dev_err(&pdev->dev, "not able to register switch device %d\n",
+ ret);
+ goto err_fini_utils;
+ }
+#endif
+
ret = snd_soc_register_card(card);
if (ret) {
dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n",
@@ -1057,16 +1067,6 @@ static __devinit int tegra_aic326x_driver_probe(struct platform_device *pdev)
goto err_unregister_card;
}
-#ifdef CONFIG_SWITCH
- /* Add h2w switch class support */
- ret = switch_dev_register(&aic326x_wired_switch_dev);
- if (ret < 0) {
- dev_err(&pdev->dev, "not able to register switch device %d\n",
- ret);
- goto err_unregister_card;
- }
-#endif
-
return 0;
err_unregister_card: