mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 06:25:52 +02:00
drivers: rk_nand: add disk information to kernel list
set nand devices path to /dev/platform/xxxxxxx.nandc/rknand0 for android 9.0 and android 10 while using gpt. Change-Id: I21c5d71ee6ed5d8520630174329c6da1c2764430 Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>
This commit is contained in:
parent
bcc14fe700
commit
7996cfe15e
|
|
@ -613,7 +613,10 @@ static int nand_add_dev(struct nand_blk_ops *nandr, struct nand_part *part)
|
|||
if (dev->readonly)
|
||||
set_disk_ro(gd, 1);
|
||||
|
||||
add_disk(gd);
|
||||
if (gd->flags != GENHD_FL_EXT_DEVT)
|
||||
add_disk(gd);
|
||||
else
|
||||
device_add_disk(g_nand_device, gd);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user