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

Commit 9ac47933 authored by Shan Wei's avatar Shan Wei Committed by John W. Linville
Browse files

wireless:ath: use resource_size() help function

parent 2d0123a5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -93,7 +93,7 @@ static int ath_ahb_probe(struct platform_device *pdev)
		goto err_out;
	}

	mem = ioremap_nocache(res->start, res->end - res->start + 1);
	mem = ioremap_nocache(res->start, resource_size(res));
	if (mem == NULL) {
		dev_err(&pdev->dev, "ioremap failed\n");
		ret = -ENOMEM;
+1 −1
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ static int ath_ahb_probe(struct platform_device *pdev)
		goto err_out;
	}

	mem = ioremap_nocache(res->start, res->end - res->start + 1);
	mem = ioremap_nocache(res->start, resource_size(res));
	if (mem == NULL) {
		dev_err(&pdev->dev, "ioremap failed\n");
		ret = -ENOMEM;