mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-08 10:23:47 +08:00
linux/generic: fix block2mtd for 2.6.38
SVN-Revision: 25704
This commit is contained in:
parent
d6b792f659
commit
5a8a9a0e23
@ -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
|
Loading…
x
Reference in New Issue
Block a user