drvmgr: Fix determination of prefix in grlib uart driver

drvmgr_get_dev_prefix returns 0 if a prefix was found.
Therefore the if condition needs to check for 0, i.e. DRVMGR_OK.
This commit is contained in:
Dennis Pfau
2020-02-20 09:57:27 -07:00
committed by Gedare Bloom
parent 3f7ebddfa4
commit 7006f08b86
+1 -1
View File
@@ -321,7 +321,7 @@ int apbuart_init1(struct drvmgr_dev *dev)
priv->condev.fsname = NULL;
/* Get Filesystem name prefix */
prefix[0] = '\0';
if (drvmgr_get_dev_prefix(dev, prefix)) {
if (drvmgr_get_dev_prefix(dev, prefix) == DRVMGR_OK) {
/* Got special prefix, this means we have a bus prefix
* And we should use our "bus minor"
*/