summaryrefslogtreecommitdiffstats
path: root/fs/fs.c
diff options
context:
space:
mode:
authorVicente Bergas <vicencb@gmail.com>2015-10-02 00:08:38 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-10-02 09:10:16 +0200
commite89f1a1f188c196eade0d2ad05b662326d870be3 (patch)
tree6b7fe46d3a75db2d8862c34244c6f02d3142fdfc /fs/fs.c
parentbdb26b1727e1e20f03021fc2f25afc9b3011813e (diff)
downloadbarebox-e89f1a1f188c196eade0d2ad05b662326d870be3.tar.gz
barebox-e89f1a1f188c196eade0d2ad05b662326d870be3.tar.xz
detect_fs: use device instead of file
detect_fs would usually mount a device on a directory, so, use a device-specific type detection. Signed-off-by: Vicente Bergas <vicencb@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs/fs.c')
-rw-r--r--fs/fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fs.c b/fs/fs.c
index 67c78cd111..c041e41bb5 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -1201,7 +1201,7 @@ EXPORT_SYMBOL(register_fs_driver);
static const char *detect_fs(const char *filename)
{
- enum filetype type = file_name_detect_type(filename);
+ enum filetype type = cdev_detect_type(filename);
struct driver_d *drv;
struct fs_driver_d *fdrv;