Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 086b0af1 authored by Wei Yongjun's avatar Wei Yongjun Committed by Vinod Koul
Browse files

dma: mmp_pdma: add missing platform_set_drvdata() in mmp_pdma_probe()



Add missing platform_set_drvdata() in mmp_pdma_probe(), otherwise
calling platform_get_drvdata() in mmp_pdma_remove() returns NULL.

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 415612c1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1017,6 +1017,7 @@ static int mmp_pdma_probe(struct platform_device *op)
		}
	}

	platform_set_drvdata(op, pdev);
	dev_info(pdev->device.dev, "initialized %d channels\n", dma_channels);
	return 0;
}