]> Git Repo - u-boot.git/commit
drivers: core: use strcmp when find device by name
authorPeng Fan <[email protected]>
Wed, 22 May 2019 07:08:14 +0000 (07:08 +0000)
committerTom Rini <[email protected]>
Sat, 13 Jul 2019 01:07:59 +0000 (21:07 -0400)
commit4213609cc7fb78f84b2ea63f4a5691b60d01c248
tree3696e9cd13f388e1b283b7a5097ef548e09ebee9
parent819ac50d2a7a05eab65b45c1c18fefedbef51e67
drivers: core: use strcmp when find device by name

`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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
drivers/core/uclass.c
This page took 0.029212 seconds and 4 git commands to generate.