stm32_sai.c (1ed7d32763857fbdc8e406352404538e41050d22) | stm32_sai.c (635eac1e54d82c59f621a0f38a9bffae50f150c7) |
---|---|
1/* 2 * STM32 ALSA SoC Digital Audio Interface (SAI) driver. 3 * 4 * Copyright (C) 2016, STMicroelectronics - All Rights Reserved 5 * Author(s): Olivier Moysan <olivier.moysan@st.com> for STMicroelectronics. 6 * 7 * License terms: GPL V2.0. 8 * --- 71 unchanged lines hidden (view full) --- 80 /* init irqs */ 81 sai->irq = platform_get_irq(pdev, 0); 82 if (sai->irq < 0) { 83 dev_err(&pdev->dev, "no irq for node %s\n", pdev->name); 84 return sai->irq; 85 } 86 87 /* reset */ | 1/* 2 * STM32 ALSA SoC Digital Audio Interface (SAI) driver. 3 * 4 * Copyright (C) 2016, STMicroelectronics - All Rights Reserved 5 * Author(s): Olivier Moysan <olivier.moysan@st.com> for STMicroelectronics. 6 * 7 * License terms: GPL V2.0. 8 * --- 71 unchanged lines hidden (view full) --- 80 /* init irqs */ 81 sai->irq = platform_get_irq(pdev, 0); 82 if (sai->irq < 0) { 83 dev_err(&pdev->dev, "no irq for node %s\n", pdev->name); 84 return sai->irq; 85 } 86 87 /* reset */ |
88 rst = reset_control_get(&pdev->dev, NULL); | 88 rst = reset_control_get_exclusive(&pdev->dev, NULL); |
89 if (!IS_ERR(rst)) { 90 reset_control_assert(rst); 91 udelay(2); 92 reset_control_deassert(rst); 93 } 94 95 sai->pdev = pdev; 96 platform_set_drvdata(pdev, sai); --- 28 unchanged lines hidden --- | 89 if (!IS_ERR(rst)) { 90 reset_control_assert(rst); 91 udelay(2); 92 reset_control_deassert(rst); 93 } 94 95 sai->pdev = pdev; 96 platform_set_drvdata(pdev, sai); --- 28 unchanged lines hidden --- |