ALSA: atmel/ac97c: correct the unexpected behavior when using uninitial value for...
[linux-3.10.git] / sound / atmel / ac97c.c
index 115313e..f5ded64 100644 (file)
@@ -991,6 +991,8 @@ static int __devinit atmel_ac97c_probe(struct platform_device *pdev)
                        gpio_direction_output(pdata->reset_pin, 1);
                        chip->reset_pin = pdata->reset_pin;
                }
+       } else {
+               chip->reset_pin = -EINVAL;
        }
 
        snd_card_set_dev(card, &pdev->dev);