On Tue, Oct 13, 2015 at 02:26:23PM +0300, Peter Mamonov wrote: > Signed-off-by: Peter Mamonov <pmamonov@xxxxxxxxx> > --- > fs/fs.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) Applied, thanks Sascha > > diff --git a/fs/fs.c b/fs/fs.c > index c041e41..c2a20e1 100644 > --- a/fs/fs.c > +++ b/fs/fs.c > @@ -1201,10 +1201,14 @@ EXPORT_SYMBOL(register_fs_driver); > > static const char *detect_fs(const char *filename) > { > - enum filetype type = cdev_detect_type(filename); > + enum filetype type; > struct driver_d *drv; > struct fs_driver_d *fdrv; > > + if (!strncmp(filename, "/dev/", 5)) > + filename += 5; > + type = cdev_detect_type(filename); > + > if (type == filetype_unknown) > return NULL; > > -- > 2.1.4 > > -- 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