[PATCH] cramfs: probe(): fix cdev lookup
Peter Korsgaard
jacmet at sunsite.dk
Tue Dec 15 15:09:05 EST 2009
Strip /dev/ part of backing store before passing cdev_by_name, as
cramfs_probe() will otherwise always fail.
Signed-off-by: Peter Korsgaard <jacmet at sunsite.dk>
---
fs/cramfs/cramfs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/cramfs/cramfs.c b/fs/cramfs/cramfs.c
index d49ac32..73a3759 100644
--- a/fs/cramfs/cramfs.c
+++ b/fs/cramfs/cramfs.c
@@ -431,7 +431,7 @@ static int cramfs_probe(struct device_d *dev)
if (strncmp(fsdev->backingstore, "/dev/", 5))
return -ENODEV;
- priv->cdev = cdev_by_name(fsdev->backingstore);
+ priv->cdev = cdev_by_name(fsdev->backingstore + 5);
if (!priv->cdev)
return -ENODEV;
--
1.6.5
More information about the u-boot-v2
mailing list