[PATCH 2/3] mtd: nand: create a wrapper for mtd_device_register for NAND specific initialization.
Boris Brezillon
boris.brezillon at free-electrons.com
Sat May 20 10:56:48 PDT 2017
Le Sat, 20 May 2017 12:24:27 -0300,
"Mario J. Rugiero" <mrugiero at gmail.com> a écrit :
> --- a/include/linux/mtd/nand.h
> +++ b/include/linux/mtd/nand.h
> @@ -38,6 +38,11 @@ int nand_scan_ident(struct mtd_info *mtd, int max_chips,
> struct nand_flash_dev *table);
> int nand_scan_tail(struct mtd_info *mtd);
>
> +/* Register the MTD device and allocate resources for the NAND device */
> +int nand_device_register(struct mtd_info *mtd,
Please pass a nand_chip object here, not mtd_info.
> + const struct mtd_partition *defparts,
> + int defnr_parts);
> +
> /* Unregister the MTD device and free resources held by the NAND device */
> void nand_release(struct mtd_info *mtd);
>
More information about the linux-mtd
mailing list