On Sun, Jun 24, 2018 at 02:29:56PM -0700, Andrey Smirnov wrote: > Signed-off-by: Andrey Smirnov <andrew.smirnov@xxxxxxxxx> > --- > fs/devfs-core.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) Applied, thanks Sascha > > diff --git a/fs/devfs-core.c b/fs/devfs-core.c > index 6b5e6da6a..f017e1c55 100644 > --- a/fs/devfs-core.c > +++ b/fs/devfs-core.c > @@ -28,6 +28,7 @@ > #include <linux/fs.h> > #include <linux/mtd/mtd.h> > #include <unistd.h> > +#include <fs.h> > > LIST_HEAD(cdev_list); > > @@ -155,10 +156,7 @@ struct cdev *cdev_open(const char *name, unsigned long flags) > struct cdev *cdev; > int ret; > > - if (!strncmp(name, "/dev/", 5)) > - name += 5; > - > - cdev = cdev_by_name(name); > + cdev = cdev_by_name(devpath_to_name(name)); > if (!cdev) > return NULL; > > -- > 2.17.1 > > > _______________________________________________ > barebox mailing list > barebox@xxxxxxxxxxxxxxxxxxx > http://lists.infradead.org/mailman/listinfo/barebox > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox