powerpc/pseries/pci: Use NULL instead of 0 for pointers
authorTushar Behera <tushar.behera@linaro.org>
Mon, 19 Nov 2012 18:31:52 +0000 (18:31 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 10 Jan 2013 06:00:19 +0000 (17:00 +1100)
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>
arch/powerpc/platforms/pseries/pci.c

index 56b864d777ee518f0cf921c7592c41fdcae8792f..0b580f413a9ab673137f4df93dbf6eece0746d2e 100644 (file)
@@ -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)) {