Boris BREZILLON 1d8d8b5c85 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>
2015-11-19 10:59:25 -08:00
..
2015-11-15 20:31:29 -08:00
2015-11-10 17:56:06 -08:00
2015-11-10 17:56:05 -08:00
2014-04-14 11:23:01 -07:00
2015-02-18 08:01:44 -08:00
2015-11-15 20:31:29 -08:00
2014-08-19 11:53:08 -07:00
2014-03-10 22:42:25 -07:00
2015-11-16 15:07:16 -08:00