1
linux/arch/mips/cavium-octeon
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
..
executive MIPS: Octeon: Rearrange CVMX files in preperation for device tree 2011-12-07 22:03:29 +00:00
cpu.c MIPS: Octeon: Place cnmips_cu2_setup in __init memory. 2010-10-04 18:34:00 +01:00
csrc-octeon.c mips: add export.h to files using EXPORT_SYMBOL/THIS_MODULE 2011-10-31 19:30:57 -04:00
dma-octeon.c MIPS: Octeon: Update DMA mapping operations for OCTEON II processors. 2011-12-07 22:03:29 +00:00
flash_setup.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00
Kconfig MIPS: Octeon: Move some Ethernet support files out of staging. 2011-12-07 22:03:28 +00:00
Makefile
octeon_boot.h MIPS: Octeon: HOTPLUG_CPU fixes. 2010-08-05 13:26:12 +01:00
octeon-irq.c MIPS: Octeon: Simplify irq_cpu_on/offline irq chip functions 2011-03-29 14:48:07 +02:00
octeon-memcpy.S
octeon-platform.c Fix common misspellings 2011-03-31 11:26:23 -03:00
Platform
serial.c MIPS: Octeon: Use I/O clock rate for calculations. 2010-10-29 19:08:41 +01:00
setup.c Merge branch 'next/generic' into mips-for-linux-next 2012-01-11 15:41:47 +01:00
smp.c MIPS: Fix up inconsistency in panic() string argument. 2011-12-07 22:01:45 +00:00