]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: Leave chip->IO_ADDR_{R, W} to NULL when unused
authorBoris Brezillon <boris.brezillon@bootlin.com>
Thu, 6 Sep 2018 22:38:33 +0000 (00:38 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 3 Oct 2018 09:12:25 +0000 (11:12 +0200)
commit559dc3cffbc8f7fd4cfe1c53f8c8554b9c16ee3b
treed004d2c3b221bf38522c79256b205d8d97006875
parenteb1d54796cdd973125251fc6a6eec50c6fdf76a4
mtd: rawnand: Leave chip->IO_ADDR_{R, W} to NULL when unused

There's no point in poisoning the ->IO_ADDR_{R,W}, a NULL pointer
is just as good to detect unexpected ->IO_ADDR_{R,W} usage.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/brcmnand/brcmnand.c
drivers/mtd/nand/raw/socrates_nand.c