From: Saeed Bishara Date: Tue, 28 Jul 2009 11:56:43 +0000 (-0700) Subject: mtd: fix the conversion from dev to mtd_info X-Git-Tag: v2.6.31-rc6~45^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6afc4fdb3e94ba60cd566cb878b60c6c01979277;p=pandora-kernel.git 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 Signed-off-by: David Woodhouse --- Reading git-diff-tree failed