Commit 001c8923 authored by Federico Vaga's avatar Federico Vaga

sw:drv: set drvdata on sucessful probe

Signed-off-by: Federico Vaga's avatarFederico Vaga <>
parent fb974131
......@@ -807,7 +807,6 @@ static int gn412x_dma_probe(struct platform_device *pdev)
if (!gn412x_dma)
return -ENOMEM;
gn412x_dma->pdev = pdev;
platform_set_drvdata(pdev, gn412x_dma);
r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!r) {
......@@ -839,6 +838,7 @@ static int gn412x_dma_probe(struct platform_device *pdev)
goto err_reg;
platform_set_drvdata(pdev, gn412x_dma);
return 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment