[PATCH V4] mtd: m25p80: Modify the name of mtd_info
shijie8 at gmail.com
Tue Apr 22 01:30:45 EST 2014
On Mon, Apr 21, 2014 at 07:06:21PM +0800, Hou Zhiqiang wrote:
> To specify spi flash layouts by "mtdparts=..." in cmdline, we must
> give mtd_info a fixed name,because the cmdlinepart's parser will
> match the name of mtd_info given in cmdline.
> Now, if use DT, the mtd_info's name will be spi->dev->name. It
> consists of spi_master->bus_num, and the spi_master->bus_num maybe
> dynamically fetched. So, in this case, replace the component bus_num
> with thei physical address of spi master.
> Signed-off-by: Hou Zhiqiang <B48286 at freescale.com>
> add check no-NULL for pointer of master's device node, and if it failed
> to get physcial address of the master, then name the mtd_info by the
> name of spi->dev.
> Fix a bug, matching unsigned long long with "%llx".
> 1. Fix some code style issue.
> 2. Cast physical address to unsigned long long.
> drivers/mtd/devices/m25p80.c | 16 ++++++++++++++--
please rebase this patch on the latest l2-mtd tree.
More information about the Linuxppc-dev