@@ -452,7 +452,7 @@ static int sun4i_spi_probe(struct platform_device *pdev)
}
ret = devm_request_irq(&pdev->dev, irq, sun4i_spi_handler,
- 0, "sun4i-spi", sspi);
+ IRQF_NO_AUTOEN, "sun4i-spi", sspi);
if (ret) {
dev_err(&pdev->dev, "Cannot request IRQ\n");
goto err_free_master;
@@ -506,6 +506,8 @@ static int sun4i_spi_probe(struct platform_device *pdev)
goto err_pm_disable;
}
+ enable_irq(irq);
+
return 0;
err_pm_disable:
@@ -583,7 +583,7 @@ static int sun6i_spi_probe(struct platform_device *pdev)
}
ret = devm_request_irq(&pdev->dev, irq, sun6i_spi_handler,
- 0, "sun6i-spi", sspi);
+ IRQF_NO_AUTOEN, "sun6i-spi", sspi);
if (ret) {
dev_err(&pdev->dev, "Cannot request IRQ\n");
goto err_free_master;
@@ -675,6 +675,8 @@ static int sun6i_spi_probe(struct platform_device *pdev)
goto err_pm_disable;
}
+ enable_irq(irq);
+
return 0;
err_pm_disable: