diff options
Diffstat (limited to 'arch/sparc64/kernel/of_device.c')
-rw-r--r-- | arch/sparc64/kernel/of_device.c | 4 |
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) | |||
317 | static int of_bus_pci_match(struct device_node *np) | 317 | static 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 | ||
340 | static int of_bus_simba_match(struct device_node *np) | 340 | static 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; |