[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:44:30 PDT 2017


Le Sat, 20 May 2017 12:24:27 -0300,
"Mario J. Rugiero" <mrugiero at gmail.com> a écrit :

>  
>  /**
> + * nand_device_register - [NAND Interface] Register the MTD device and
> + *                        allocate resources for the NAND device
> + * @mtd: MTD device structure
> + * @defparts: default device partitions array, from C-based board files
> + * @defnr_parts: number of elements in defparts
> + *
> + * @return
> + */
> +int nand_device_register(struct mtd_info *mtd,
> +			 const struct mtd_partition *defparts,
> +			 int defnr_parts)
> +{
> +	int ret = nand_device_register(mtd, defparts, defnr_parts);

	return nand_device_register(mtd, defparts, defnr_parts);

> +
> +	return ret;
> +}
> +EXPORT_SYMBOL_GPL(nand_device_register);



More information about the linux-mtd mailing list