Skip to content
Snippets Groups Projects
Commit 5a8a9a0e authored by Alexandros C. Couloumbis's avatar Alexandros C. Couloumbis
Browse files

linux/generic: fix block2mtd for 2.6.38

SVN-Revision: 25704
parent d6b792f6
No related branches found
No related tags found
No related merge requests found
--- a/drivers/mtd/devices/block2mtd.c
+++ b/drivers/mtd/devices/block2mtd.c
@@ -330,7 +330,7 @@ static int block2mtd_refresh(struct mtd_
_close_bdev(dev);
/* open the whole disk, issue a partition rescan, then */
- bdev = blkdev_get_by_dev(devt, FMODE_WRITE | FMODE_READ);
+ bdev = blkdev_get_by_dev(devt, FMODE_WRITE | FMODE_READ, mtd);
if (!bdev || !bdev->bd_disk)
err = -EINVAL;
#ifndef CONFIG_MTD_BLOCK2MTD_MODULE
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment