net: hns: add attribute cpld_ctrl for dsaf port node
[cascardo/linux.git] / drivers / net / ethernet / hisilicon / hns / hns_dsaf_main.c
index 33cdb21..1c2ddb2 100644 (file)
@@ -189,8 +189,6 @@ unmap_base_addr:
                iounmap(dsaf_dev->sds_base);
        if (dsaf_dev->sc_base)
                iounmap(dsaf_dev->sc_base);
-       if (dsaf_dev->cpld_base)
-               iounmap(dsaf_dev->cpld_base);
        return ret;
 }
 
@@ -207,9 +205,6 @@ static void hns_dsaf_free_cfg(struct dsaf_device *dsaf_dev)
 
        if (dsaf_dev->sc_base)
                iounmap(dsaf_dev->sc_base);
-
-       if (dsaf_dev->cpld_base)
-               iounmap(dsaf_dev->cpld_base);
 }
 
 /**