commit | 26d68b2654819c14a50b6fb9d9dfa4f5b78276ca | [log] [tgz] |
---|---|---|
author | Peng Fan <peng.fan@nxp.com> | Wed May 22 07:08:14 2019 +0000 |
committer | Tom Rini <trini@konsulko.com> | Fri Jul 12 21:07:59 2019 -0400 |
tree | 3696e9cd13f388e1b283b7a5097ef548e09ebee9 | |
parent | e702810484b6509fcbffe45862e5905f938f189c [diff] |
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>