projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f79cb8
)
powerpc/pseries/pci: Use NULL instead of 0 for pointers
author
Tushar Behera
<
[email protected]
>
Mon, 19 Nov 2012 18:31:52 +0000
(18:31 +0000)
committer
Benjamin Herrenschmidt
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Benjamin Herrenschmidt <
[email protected]
>
arch/powerpc/platforms/pseries/pci.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/platforms/pseries/pci.c
b/arch/powerpc/platforms/pseries/pci.c
index 56b864d777ee518f0cf921c7592c41fdcae8792f..0b580f413a9ab673137f4df93dbf6eece0746d2e 100644
(file)
--- 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)) {