diff options
| author | Boris BREZILLON <boris.brezillon@free-electrons.com> | 2015-11-16 14:37:34 +0100 |
|---|---|---|
| committer | Brian Norris <computersforpeace@gmail.com> | 2015-11-19 10:59:25 -0800 |
| commit | 1d8d8b5c852b6c7ae860ddc647ebb3ed3493c9a8 (patch) | |
| tree | 03e12eaa397eccb39cee6ff3230a6a571b74e60b /include/linux/mtd | |
| parent | 064f462632c2294f9b7fb51a7697392fedeea12e (diff) | |
| download | lwn-1d8d8b5c852b6c7ae860ddc647ebb3ed3493c9a8.tar.gz lwn-1d8d8b5c852b6c7ae860ddc647ebb3ed3493c9a8.zip | |
mtd: nand: fix drivers abusing mtd->priv
The ->priv field of the mtd_info object attached to a nand_chip device
should point to the nand_chip device. The pxa and cafe drivers are
assigning this field their own private structure, which works fine as long
as the nand_chip field is the first one in the driver private struct but
seems a bit fragile.
Fix that by setting mtd->priv to point the nand_chip field and assigning
chip->priv to the private structure head.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'include/linux/mtd')
0 files changed, 0 insertions, 0 deletions
