bus/fslmc: fix DPCI compare in scan
Incorrect string length was being compared while scanning DPCI object. Fixes: 828d51d8fc3e ("bus/fslmc: refactor scan and probe functions") Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
This commit is contained in:
parent
a1a487f0c9
commit
4c00db4bfb
@ -141,7 +141,7 @@ scan_one_fslmc_device(char *dev_name)
|
||||
dev->dev_type = DPAA2_BPOOL;
|
||||
else if (!strncmp("dpio", t_ptr, 4))
|
||||
dev->dev_type = DPAA2_IO;
|
||||
else if (!strncmp("dpci", t_ptr, 5))
|
||||
else if (!strncmp("dpci", t_ptr, 4))
|
||||
dev->dev_type = DPAA2_CI;
|
||||
else if (!strncmp("dpmcp", t_ptr, 5))
|
||||
dev->dev_type = DPAA2_MPORTAL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user