• Artem Bityutskiy's avatar
    UBI: fix mtd device string parsing · d1f3dd6c
    Artem Bityutskiy authored
    UBI allows to specify MTD device name or number when the module is being
    loaded. When parsing MTD device identity string, it first tries to treat
    it as device NAME, and if that fails, it treats it as device number.
    
    Make it vice-versa as this is more logical and makes less troubles when
    you have an MTD device named "1" and try to load mtd1 which has different
    name. This is especially easy to hit when gluebi is enabled.
    Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
    d1f3dd6c
build.c 31.5 KB