linux/drivers/mtd/onenand
Artem Bityutskiy 42d7fbe223 mtd: do not use plain 0 as NULL
The first 3 arguments of 'mtd_device_parse_register()' are pointers,
but many callers pass '0' instead of 'NULL'. Fix this globally. Thanks
to coccinelle for making it easy to do with the following semantic patch:

 @@
 expression mtd, types, parser_data, parts, nr_parts;
 @@
 (
 -mtd_device_parse_register(mtd, 0, parser_data, parts, nr_parts)
 +mtd_device_parse_register(mtd, NULL, parser_data, parts, nr_parts)
 |
 -mtd_device_parse_register(mtd, types, 0, parts, nr_parts)
 +mtd_device_parse_register(mtd, types, NULL, parts, nr_parts)
 |
 -mtd_device_parse_register(mtd, types, parser_data, 0, nr_parts)
 +mtd_device_parse_register(mtd, types, parser_data, NULL, nr_parts)
 )

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2012-03-27 00:53:20 +01:00
..
generic.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00
Kconfig mtd: onenand: convert to mtd_device_register() 2011-05-25 02:21:19 +01:00
Makefile mtd: add Samsung SoC OneNAND driver 2010-05-14 01:51:20 +01:00
omap2.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00
onenand_base.c mtd: remove retlen zeroing duplication 2012-03-27 00:29:34 +01:00
onenand_bbt.c Merge git://git.infradead.org/mtd-2.6 2011-11-07 09:11:16 -08:00
onenand_sim.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
samsung.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00