layerscape: fix platform_copy_config function