aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/of_device.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2007-03-29 04:50:16 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 04:55:37 -0400
commita165b4205e0097c7544ec3c59522a3b20ec14eb1 (patch)
tree6c4608555770b122c511d740f0180b796f75bf9b /arch/sparc64/kernel/of_device.c
parentf1cfdb55f16596752e8a61a8570a90ee26af183a (diff)
[SPARC64]: Fix PCI rework to adhere to of_get_property() const return.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/of_device.c')
-rw-r--r--arch/sparc64/kernel/of_device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc64/kernel/of_device.c b/arch/sparc64/kernel/of_device.c
index f18eec6ad691..9ac9a307999a 100644
--- a/arch/sparc64/kernel/of_device.c
+++ b/arch/sparc64/kernel/of_device.c
@@ -317,7 +317,7 @@ static unsigned int of_bus_default_get_flags(const u32 *addr)
317static int of_bus_pci_match(struct device_node *np) 317static int of_bus_pci_match(struct device_node *np)
318{ 318{
319 if (!strcmp(np->type, "pci") || !strcmp(np->type, "pciex")) { 319 if (!strcmp(np->type, "pci") || !strcmp(np->type, "pciex")) {
320 char *model = of_get_property(np, "model", NULL); 320 const char *model = of_get_property(np, "model", NULL);
321 321
322 if (model && !strcmp(model, "SUNW,simba")) 322 if (model && !strcmp(model, "SUNW,simba"))
323 return 0; 323 return 0;
@@ -339,7 +339,7 @@ static int of_bus_pci_match(struct device_node *np)
339 339
340static int of_bus_simba_match(struct device_node *np) 340static int of_bus_simba_match(struct device_node *np)
341{ 341{
342 char *model = of_get_property(np, "model", NULL); 342 const char *model = of_get_property(np, "model", NULL);
343 343
344 if (model && !strcmp(model, "SUNW,simba")) 344 if (model && !strcmp(model, "SUNW,simba"))
345 return 1; 345 return 1;