diff options
author | Peng Fan <peng.fan@nxp.com> | 2019-05-22 10:08:14 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-07-13 04:07:59 +0300 |
commit | 4213609cc7fb78f84b2ea63f4a5691b60d01c248 (patch) | |
tree | 3696e9cd13f388e1b283b7a5097ef548e09ebee9 /cmd | |
parent | 819ac50d2a7a05eab65b45c1c18fefedbef51e67 (diff) | |
download | u-boot-4213609cc7fb78f84b2ea63f4a5691b60d01c248.tar.xz |
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 <peng.fan@nxp.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions