Merge remote-tracking branches 'asoc/topic/twl6040', 'asoc/topic/txx9', 'asoc/topic...
[muen/linux.git] / sound / soc / codecs / twl6040.c
index 2b6ad09e08868323e3e9bef25bd26b33bb5e2949..1773ff84ee3b23a659341efed47aa0d41770b78b 100644 (file)
@@ -1123,8 +1123,8 @@ static int twl6040_probe(struct snd_soc_codec *codec)
 
        priv->plug_irq = platform_get_irq(pdev, 0);
        if (priv->plug_irq < 0) {
-               dev_err(codec->dev, "invalid irq\n");
-               return -EINVAL;
+               dev_err(codec->dev, "invalid irq: %d\n", priv->plug_irq);
+               return priv->plug_irq;
        }
 
        INIT_DELAYED_WORK(&priv->hs_jack.work, twl6040_accessory_work);
@@ -1155,7 +1155,7 @@ static int twl6040_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_twl6040 = {
+static const struct snd_soc_codec_driver soc_codec_dev_twl6040 = {
        .probe = twl6040_probe,
        .remove = twl6040_remove,
        .read = twl6040_read,