{
        int ret;
 
-       if (!check_chip_resource(ppd->dd, qsfp_resource(ppd->dd), __func__))
+       if (!check_chip_resource(ppd->dd, i2c_target(target), __func__))
                return -EACCES;
 
        /* make sure the TWSI bus is in a sane state */
 {
        int ret;
 
-       if (!check_chip_resource(ppd->dd, qsfp_resource(ppd->dd), __func__))
+       if (!check_chip_resource(ppd->dd, i2c_target(target), __func__))
                return -EACCES;
 
        /* make sure the TWSI bus is in a sane state */
        int ret;
        u8 page;
 
-       if (!check_chip_resource(ppd->dd, qsfp_resource(ppd->dd), __func__))
+       if (!check_chip_resource(ppd->dd, i2c_target(target), __func__))
                return -EACCES;
 
        /* make sure the TWSI bus is in a sane state */
        int ret;
        u8 page;
 
-       if (!check_chip_resource(ppd->dd, qsfp_resource(ppd->dd), __func__))
+       if (!check_chip_resource(ppd->dd, i2c_target(target), __func__))
                return -EACCES;
 
        /* make sure the TWSI bus is in a sane state */