9
0
Fork 0
barebox/drivers/mtd
Alexander Aring 65fd4afcf2 mtd-core: fix compiler warning
Got this compile warning if MTD_WRITE support isn't set.

drivers/mtd/core.c: In function 'mtd_ioctl':
drivers/mtd/core.c:117:26: warning: unused variable 'ei' [-Wunused-variable]

Add a #ifdef to declaration of variable 'ei' to solve it.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-01-17 08:13:44 +01:00
..
devices Cleanup Kconfig files 2012-12-08 12:22:12 +01:00
nand Merge branch 'for-next/omap' 2013-01-09 10:29:08 +01:00
ubi ubi: consolidate ubi-media.h 2012-12-19 10:30:56 +01:00
Kconfig Cleanup Kconfig files 2012-12-08 12:22:12 +01:00
Makefile drivers/mtd: add docg3 chip 2012-01-02 12:34:58 +01:00
core.c mtd-core: fix compiler warning 2013-01-17 08:13:44 +01:00
mtd.h mtd: add private data to mtddev-hook 2012-09-03 11:06:01 +02:00
mtdoob.c mtd oob: do not register oob device for devices without oob 2012-11-29 19:52:26 +01:00
mtdraw.c Merge branch 'for-next/mtd' 2012-11-16 14:02:32 +01:00
partition.c mtd: introduce mtd_block_isbad 2012-11-03 23:20:59 +01:00