mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 17:31:01 +08:00
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:
committed by
Gedare Bloom
parent
3f7ebddfa4
commit
7006f08b86
@@ -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"
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user