1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-07-02 20:31:07 +03:00

linux/generic: fix block2mtd for 2.6.38

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25704 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
acoul 2011-02-24 19:13:05 +00:00
parent e484add481
commit 14dd9445ff

View File

@ -0,0 +1,11 @@
--- 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