From: Ruiqiang Hao <ruiqiang....@windriver.com>

Function ioremap_nocache() was not exist, so replace it with ioremap().

Signed-off-by: Ruiqiang Hao <ruiqiang....@windriver.com>
---
 .../ethernet/marvell/octeontx2/bphy/otx2_bphy_main.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/net/ethernet/marvell/octeontx2/bphy/otx2_bphy_main.c 
b/drivers/net/ethernet/marvell/octeontx2/bphy/otx2_bphy_main.c
index f485ed825bc5..049285301abf 100644
--- a/drivers/net/ethernet/marvell/octeontx2/bphy/otx2_bphy_main.c
+++ b/drivers/net/ethernet/marvell/octeontx2/bphy/otx2_bphy_main.c
@@ -572,7 +572,7 @@ static int otx2_bphy_probe(struct platform_device *pdev)
                err = -ENXIO;
                goto free_cdev_priv;
        }
-       bphy_reg_base = ioremap_nocache(res->start, resource_size(res));
+       bphy_reg_base = ioremap(res->start, resource_size(res));
        if (IS_ERR(bphy_reg_base)) {
                dev_err(&pdev->dev, "failed to ioremap bphy registers\n");
                err = PTR_ERR(bphy_reg_base);
@@ -585,7 +585,7 @@ static int otx2_bphy_probe(struct platform_device *pdev)
                err = -ENXIO;
                goto out_unmap_bphy_reg;
        }
-       psm_reg_base = ioremap_nocache(res->start, resource_size(res));
+       psm_reg_base = ioremap(res->start, resource_size(res));
        if (IS_ERR(psm_reg_base)) {
                dev_err(&pdev->dev, "failed to ioremap psm registers\n");
                err = PTR_ERR(psm_reg_base);
@@ -598,7 +598,7 @@ static int otx2_bphy_probe(struct platform_device *pdev)
                err = -ENXIO;
                goto out_unmap_psm_reg;
        }
-       rfoe_reg_base = ioremap_nocache(res->start, resource_size(res));
+       rfoe_reg_base = ioremap(res->start, resource_size(res));
        if (IS_ERR(rfoe_reg_base)) {
                dev_err(&pdev->dev, "failed to ioremap rfoe registers\n");
                err = PTR_ERR(rfoe_reg_base);
@@ -611,7 +611,7 @@ static int otx2_bphy_probe(struct platform_device *pdev)
                err = -ENXIO;
                goto out_unmap_rfoe_reg;
        }
-       bcn_reg_base = ioremap_nocache(res->start, resource_size(res));
+       bcn_reg_base = ioremap(res->start, resource_size(res));
        if (IS_ERR(bcn_reg_base)) {
                dev_err(&pdev->dev, "failed to ioremap bcn registers\n");
                err = PTR_ERR(bcn_reg_base);
@@ -624,7 +624,7 @@ static int otx2_bphy_probe(struct platform_device *pdev)
                err = -ENXIO;
                goto out_unmap_bcn_reg;
        }
-       ptp_reg_base = ioremap_nocache(res->start, resource_size(res));
+       ptp_reg_base = ioremap(res->start, resource_size(res));
        if (IS_ERR(ptp_reg_base)) {
                dev_err(&pdev->dev, "failed to ioremap ptp registers\n");
                err = PTR_ERR(ptp_reg_base);
@@ -637,7 +637,7 @@ static int otx2_bphy_probe(struct platform_device *pdev)
                err = -ENXIO;
                goto out_unmap_ptp_reg;
        }
-       cpri_reg_base = ioremap_nocache(res->start, resource_size(res));
+       cpri_reg_base = ioremap(res->start, resource_size(res));
        if (IS_ERR(cpri_reg_base)) {
                dev_err(&pdev->dev, "failed to ioremap cpri registers\n");
                err = PTR_ERR(cpri_reg_base);
-- 
2.29.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#10049): 
https://lists.yoctoproject.org/g/linux-yocto/message/10049
Mute This Topic: https://lists.yoctoproject.org/mt/83990780/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to