diff mbox series

[U-Boot,2/3] env: Fix missed getenv_ulong to env_get_ulong conversion

Message ID 20180214175339.31459-2-afd@ti.com
State Accepted
Commit 952c346272dbf1f5fac8c2ca7ee6def858ea0ffd
Delegated to: Tom Rini
Headers show
Series [U-Boot,1/3] ARM: Kconfig: Move TI_SECURE_DEVICE to a common area | expand

Commit Message

Andrew Davis Feb. 14, 2018, 5:53 p.m. UTC
This seems to have been missed, possibly due to the inability to
enable TI_SECURE_DEVICE on Keystone2 devices previously.

Fixes: bfebc8c965e4 ("env: Rename getenv_hex(), getenv_yesno(), getenv_ulong()")
Signed-off-by: Andrew F. Davis <afd@ti.com>
---
 board/ti/ks2_evm/board_k2g.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Lokesh Vutla Feb. 15, 2018, 6:29 a.m. UTC | #1
On Wednesday 14 February 2018 11:23 PM, Andrew F. Davis wrote:
> This seems to have been missed, possibly due to the inability to
> enable TI_SECURE_DEVICE on Keystone2 devices previously.
> 
> Fixes: bfebc8c965e4 ("env: Rename getenv_hex(), getenv_yesno(), getenv_ulong()")
> Signed-off-by: Andrew F. Davis <afd@ti.com>

Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>

Thanks and regards,
Lokesh

> ---
>  board/ti/ks2_evm/board_k2g.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/board/ti/ks2_evm/board_k2g.c b/board/ti/ks2_evm/board_k2g.c
> index 88df419b10..b9575a8e46 100644
> --- a/board/ti/ks2_evm/board_k2g.c
> +++ b/board/ti/ks2_evm/board_k2g.c
> @@ -376,7 +376,7 @@ int get_num_eth_ports(void)
>  #ifdef CONFIG_TI_SECURE_DEVICE
>  void board_pmmc_image_process(ulong pmmc_image, size_t pmmc_size)
>  {
> -	int id = getenv_ulong("dev_pmmc", 10, 0);
> +	int id = env_get_ulong("dev_pmmc", 10, 0);
>  	int ret;
>  
>  	if (!rproc_is_initialized())
>
Tom Rini Feb. 23, 2018, 6:03 p.m. UTC | #2
On Wed, Feb 14, 2018 at 11:53:38AM -0600, Andrew F. Davis wrote:

> This seems to have been missed, possibly due to the inability to
> enable TI_SECURE_DEVICE on Keystone2 devices previously.
> 
> Fixes: bfebc8c965e4 ("env: Rename getenv_hex(), getenv_yesno(), getenv_ulong()")
> Signed-off-by: Andrew F. Davis <afd@ti.com>
> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/board/ti/ks2_evm/board_k2g.c b/board/ti/ks2_evm/board_k2g.c
index 88df419b10..b9575a8e46 100644
--- a/board/ti/ks2_evm/board_k2g.c
+++ b/board/ti/ks2_evm/board_k2g.c
@@ -376,7 +376,7 @@  int get_num_eth_ports(void)
 #ifdef CONFIG_TI_SECURE_DEVICE
 void board_pmmc_image_process(ulong pmmc_image, size_t pmmc_size)
 {
-	int id = getenv_ulong("dev_pmmc", 10, 0);
+	int id = env_get_ulong("dev_pmmc", 10, 0);
 	int ret;
 
 	if (!rproc_is_initialized())