gpio_request_by_name in Uboot source code

hi everyone, i have an issue when doing exercise about uboot
I try to control led on/off when booting uboot on beaglebone black but when i Make Uboot, it has error that
the function gpio_request_by_name is deprecated in new source code uboot so how i can fixed and i can using another function instead … Please tell me