Commit 1cfb7c28 authored by Yangtao Li's avatar Yangtao Li Committed by Ulf Hansson
Browse files

mmc: tmio: convert to devm_platform_ioremap_resource

parent c5c52c37
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1109,12 +1109,10 @@ struct tmio_mmc_host *tmio_mmc_host_alloc(struct platform_device *pdev,
{
	struct tmio_mmc_host *host;
	struct mmc_host *mmc;
	struct resource *res;
	void __iomem *ctl;
	int ret;

	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	ctl = devm_ioremap_resource(&pdev->dev, res);
	ctl = devm_platform_ioremap_resource(pdev, 0);
	if (IS_ERR(ctl))
		return ERR_CAST(ctl);