linux/drivers/mtd/maps
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
..
amd76xrom.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
autcpu12-nvram.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
bfin-async-flash.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00
cdb89712.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
cfi_flagadm.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
ck804xrom.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
dbox2-flash.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
dc21285.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00
dilnetpc.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
dmv182.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
esb2rom.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
fortunet.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
gpio-addr-flash.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00
h720x-flash.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00
ichxrom.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
impa7.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00
intel_vr_nor.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00
ixp4xx.c mtd: ixp4xx: oops in ixp4xx_flash_probe 2012-03-27 00:33:33 +01:00
ixp2000.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00
Kconfig mtd: maps: remove the now unused bcm963xx-flash 2012-01-09 18:16:39 +00:00
l440gx.c mtd: maps: l440gx: Add reference counter to set_vpp() 2012-03-27 00:52:49 +01:00
lantiq-flash.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00
latch-addr-flash.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00
Makefile mtd: maps: remove the now unused bcm963xx-flash 2012-01-09 18:16:39 +00:00
map_funcs.c
mbx860.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
netsc520.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
nettel.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
octagon-5066.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
pci.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
pcmciamtd.c mtd: maps: pcmciamtd: Add reference counter to set_vpp() 2012-03-27 00:52:56 +01:00
physmap_of.c mtd: convert drivers/mtd/* to use module_platform_driver() 2012-01-09 18:12:35 +00:00
physmap.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00
pismo.c ARM: 6910/1: MTD: physmap: let set_vpp() pass a platform_device instead of a map_info 2011-05-20 22:27:34 +01:00
plat-ram.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00
pmcmsp-flash.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
pxa2xx-flash.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00
rbtx4939-flash.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00
rpxlite.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
sa1100-flash.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00
sbc_gxx.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
sc520cdp.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
scb2_flash.c mtd: do not use mtd->lock, unlock and is_locked directly 2012-01-09 18:26:22 +00:00
scx200_docflash.c mtd: scx200_docflash: convert to mtd_device_register() 2011-05-25 02:22:04 +01:00
solutionengine.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00
sun_uflash.c mtd: convert drivers/mtd/* to use module_platform_driver() 2012-01-09 18:12:35 +00:00
tqm8xxl.c mtd: tqm8xll: convert to mtd_device_register() 2011-05-25 02:22:57 +01:00
ts5500_flash.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
tsunami_flash.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
uclinux.c mtd: add leading underscore to all mtd functions 2012-03-27 00:20:01 +01:00
vmax301.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
vmu-flash.c mtd: move zero length verification to MTD API functions 2012-03-27 00:32:19 +01:00
wr_sbc82xx_flash.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00