diff options
Diffstat (limited to 'sound/soc/mxs/mxs-saif.c')
-rw-r--r-- | sound/soc/mxs/mxs-saif.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/mxs/mxs-saif.c b/sound/soc/mxs/mxs-saif.c index d9865082160c..c866ade28ad0 100644 --- a/sound/soc/mxs/mxs-saif.c +++ b/sound/soc/mxs/mxs-saif.c | |||
@@ -710,7 +710,7 @@ static int mxs_saif_probe(struct platform_device *pdev) | |||
710 | struct device_node *np = pdev->dev.of_node; | 710 | struct device_node *np = pdev->dev.of_node; |
711 | struct resource *iores; | 711 | struct resource *iores; |
712 | struct mxs_saif *saif; | 712 | struct mxs_saif *saif; |
713 | int ret = 0; | 713 | int irq, ret = 0; |
714 | struct device_node *master; | 714 | struct device_node *master; |
715 | 715 | ||
716 | if (!np) | 716 | if (!np) |
@@ -763,16 +763,16 @@ static int mxs_saif_probe(struct platform_device *pdev) | |||
763 | if (IS_ERR(saif->base)) | 763 | if (IS_ERR(saif->base)) |
764 | return PTR_ERR(saif->base); | 764 | return PTR_ERR(saif->base); |
765 | 765 | ||
766 | saif->irq = platform_get_irq(pdev, 0); | 766 | irq = platform_get_irq(pdev, 0); |
767 | if (saif->irq < 0) { | 767 | if (irq < 0) { |
768 | ret = saif->irq; | 768 | ret = irq; |
769 | dev_err(&pdev->dev, "failed to get irq resource: %d\n", | 769 | dev_err(&pdev->dev, "failed to get irq resource: %d\n", |
770 | ret); | 770 | ret); |
771 | return ret; | 771 | return ret; |
772 | } | 772 | } |
773 | 773 | ||
774 | saif->dev = &pdev->dev; | 774 | saif->dev = &pdev->dev; |
775 | ret = devm_request_irq(&pdev->dev, saif->irq, mxs_saif_irq, 0, | 775 | ret = devm_request_irq(&pdev->dev, irq, mxs_saif_irq, 0, |
776 | dev_name(&pdev->dev), saif); | 776 | dev_name(&pdev->dev), saif); |
777 | if (ret) { | 777 | if (ret) { |
778 | dev_err(&pdev->dev, "failed to request irq\n"); | 778 | dev_err(&pdev->dev, "failed to request irq\n"); |