]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: jz4740: Include gpio/consumer.h instead of gpio.h
authorBoris Brezillon <boris.brezillon@bootlin.com>
Thu, 19 Jul 2018 22:38:13 +0000 (00:38 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 31 Jul 2018 07:45:53 +0000 (09:45 +0200)
commitb8e58238aa8b85df752cca6bddbf7f9f1138fe89
tree7584ded8890ffb13eed017e98019d841dad74ae7
parentc9a1f73e7852dd1a112719d552619998adc866df
mtd: rawnand: jz4740: Include gpio/consumer.h instead of gpio.h

GPIO consumers should no longer include <linux/gpio.h>, and instead
include <linux/gpio/consumer.h>.

Also, explicitly include <include/io.h> since it seems to be missing
after switching to <linux/gpio/consumer.h>.

This fixes a build error when selecting the driver without selecting
GPIOLIB, which can happen when COMPILE_TEST=y.

Fixes: f5dcbc0725c9 ("mtd: rawnand: jz4740: Allow selection of this driver when COMPILE_TEST=y")
Reported-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/jz4740_nand.c