ALSA: usb-audio: fix compilation error
Rhyland Klein [Thu, 2 Aug 2012 19:29:35 +0000 (15:29 -0400)]
change 8843c49092b6ed903e88eded1f1c9b9a7f432dfe introduced
a compliation error if CONFIG_SWITCH is not enabled.

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Change-Id: I4b4c547394f424bd90837726b08d9feccd4207de
Reviewed-on: http://git-master/r/120444
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

sound/usb/card.c

index 999d720..223e4fe 100644 (file)
@@ -756,7 +756,9 @@ static int __init snd_usb_audio_init(void)
 
        err = usb_register(&usb_audio_driver);
        if (err) {
+#ifdef CONFIG_SWITCH
                switch_dev_unregister(&usb_switch_dev);
+#endif
        }
 
        return err;