mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 16:37:50 +00:00
dmaengine: stm32-dmamux: use reset controller only at probe time
Remove reset controller reference from device instance since it is used only at probe time. Signed-off-by: Etienne Carriere <etienne.carriere@st.com> Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com> Link: https://lore.kernel.org/r/20200128094158.20361-4-amelie.delaunay@st.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
parent
57e9f3666a
commit
d04d2f620d
1 changed files with 5 additions and 5 deletions
|
@ -35,7 +35,6 @@ struct stm32_dmamux {
|
||||||
struct stm32_dmamux_data {
|
struct stm32_dmamux_data {
|
||||||
struct dma_router dmarouter;
|
struct dma_router dmarouter;
|
||||||
struct clk *clk;
|
struct clk *clk;
|
||||||
struct reset_control *rst;
|
|
||||||
void __iomem *iomem;
|
void __iomem *iomem;
|
||||||
u32 dma_requests; /* Number of DMA requests connected to DMAMUX */
|
u32 dma_requests; /* Number of DMA requests connected to DMAMUX */
|
||||||
u32 dmamux_requests; /* Number of DMA requests routed toward DMAs */
|
u32 dmamux_requests; /* Number of DMA requests routed toward DMAs */
|
||||||
|
@ -182,6 +181,7 @@ static int stm32_dmamux_probe(struct platform_device *pdev)
|
||||||
struct stm32_dmamux_data *stm32_dmamux;
|
struct stm32_dmamux_data *stm32_dmamux;
|
||||||
struct resource *res;
|
struct resource *res;
|
||||||
void __iomem *iomem;
|
void __iomem *iomem;
|
||||||
|
struct reset_control *rst;
|
||||||
int i, count, ret;
|
int i, count, ret;
|
||||||
u32 dma_req;
|
u32 dma_req;
|
||||||
|
|
||||||
|
@ -265,11 +265,11 @@ static int stm32_dmamux_probe(struct platform_device *pdev)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
stm32_dmamux->rst = devm_reset_control_get(&pdev->dev, NULL);
|
rst = devm_reset_control_get(&pdev->dev, NULL);
|
||||||
if (!IS_ERR(stm32_dmamux->rst)) {
|
if (!IS_ERR(rst)) {
|
||||||
reset_control_assert(stm32_dmamux->rst);
|
reset_control_assert(rst);
|
||||||
udelay(2);
|
udelay(2);
|
||||||
reset_control_deassert(stm32_dmamux->rst);
|
reset_control_deassert(rst);
|
||||||
}
|
}
|
||||||
|
|
||||||
stm32_dmamux->iomem = iomem;
|
stm32_dmamux->iomem = iomem;
|
||||||
|
|
Loading…
Reference in a new issue