mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09: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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user