Home
last modified time | relevance | path

Searched hist:"6 afc4fdb3e94ba60cd566cb878b60c6c01979277" (Results 1 – 2 of 2) sorted by relevance

/linux/include/linux/mtd/
H A Dmtd.hdiff 6afc4fdb3e94ba60cd566cb878b60c6c01979277 Tue Jul 28 13:56:43 CEST 2009 Saeed Bishara <saeed@marvell.com> mtd: fix the conversion from dev to mtd_info

The patch fixes a bug when converting dev to mtd_info by using the
drvdata of the dev, the previous code used
container_of(dev, struct mtd_info, dev), but won't work for the mtdXro
devices as they created without being contained inside mtd_info structure.

Signed-off-by: Saeed Bishara <saeed@marvell.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
/linux/drivers/mtd/
H A Dmtdcore.cdiff 6afc4fdb3e94ba60cd566cb878b60c6c01979277 Tue Jul 28 13:56:43 CEST 2009 Saeed Bishara <saeed@marvell.com> mtd: fix the conversion from dev to mtd_info

The patch fixes a bug when converting dev to mtd_info by using the
drvdata of the dev, the previous code used
container_of(dev, struct mtd_info, dev), but won't work for the mtdXro
devices as they created without being contained inside mtd_info structure.

Signed-off-by: Saeed Bishara <saeed@marvell.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>