summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorTushar Behera <tushar.behera@linaro.org>2012-11-19 18:31:52 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-01-10 17:00:19 +1100
commit724c6abf29bcef1aae688f023b7d6dcb7eab0e68 (patch)
treee737516e37f724ff1f5875c2688305f8e0b7bd57 /arch
parent6f79cb8134c5cd9f3346087906829013dce8d460 (diff)
downloadlinux-3.10-724c6abf29bcef1aae688f023b7d6dcb7eab0e68.tar.gz
linux-3.10-724c6abf29bcef1aae688f023b7d6dcb7eab0e68.tar.bz2
linux-3.10-724c6abf29bcef1aae688f023b7d6dcb7eab0e68.zip
powerpc/pseries/pci: Use NULL instead of 0 for pointers
The third argument for of_get_property() is a pointer, hence pass NULL instead of 0. Signed-off-by: Tushar Behera <tushar.behera@linaro.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/pseries/pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/pseries/pci.c b/arch/powerpc/platforms/pseries/pci.c
index 56b864d777e..0b580f413a9 100644
--- a/arch/powerpc/platforms/pseries/pci.c
+++ b/arch/powerpc/platforms/pseries/pci.c
@@ -40,7 +40,8 @@ void pcibios_name_device(struct pci_dev *dev)
*/
dn = pci_device_to_OF_node(dev);
if (dn) {
- const char *loc_code = of_get_property(dn, "ibm,loc-code", 0);
+ const char *loc_code = of_get_property(dn, "ibm,loc-code",
+ NULL);
if (loc_code) {
int loc_len = strlen(loc_code);
if (loc_len < sizeof(dev->dev.name)) {