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>
This commit is contained in:
parent
6f79cb8134
commit
724c6abf29
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user