[U-Boot] [PATCH V2 3/3] drivers: core: use strcmp when find device by name
Bin Meng
bmeng.cn at gmail.com
Wed May 22 07:50:29 UTC 2019
On Wed, May 22, 2019 at 3:08 PM Peng Fan <peng.fan at nxp.com> wrote:
>
> `if (!strncmp(dev->name, name, strlen(name)))` might find out
> the wrong device, it might find out `dram_pll_ref_sel`, when name is
> `dram_pll`. So use strcmp to avoid such issue.
>
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> ---
>
> V2:
> None
>
> drivers/core/uclass.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
More information about the U-Boot
mailing list