diff options
author | 2009-07-28 04:56:43 -0700 | |
---|---|---|
committer | 2009-08-03 14:16:01 +0100 | |
commit | 6afc4fdb3e94ba60cd566cb878b60c6c01979277 (patch) | |
tree | 75cc3a29b3e988f852fde390e3fe79e6d157db51 /lib/fault-inject.c | |
parent | mtd: let include/linux/mtd/partitions.h stand on its own (diff) | |
download | wireguard-linux-6afc4fdb3e94ba60cd566cb878b60c6c01979277.tar.xz wireguard-linux-6afc4fdb3e94ba60cd566cb878b60c6c01979277.zip |
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>
Diffstat (limited to 'lib/fault-inject.c')
0 files changed, 0 insertions, 0 deletions