diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2006-07-12 01:39:42 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-07-31 01:55:04 -0400 |
commit | 8efca49329a50710d656a8bb78d6f0f0e2f48a26 (patch) | |
tree | 6843306ed52bb6f9b932633ddaf1df90431a2ab6 /arch/powerpc/platforms/embedded6xx | |
parent | c4c7cba90cf9f180a2c45f7e54143f786360f3dd (diff) |
[POWERPC] mpc: Constify & voidify get_property()
Now that get_property() returns a void *, there's no need to cast its
return value. Also, treat the return value as const, so we can
constify get_property later.
mpc* platform changes.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/embedded6xx')
-rw-r--r-- | arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c b/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c index d7a4fc7ca23..69c998cb4f1 100644 --- a/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c +++ b/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c | |||
@@ -130,7 +130,7 @@ void mpc7448_hpc2_fixup_irq(struct pci_dev *dev) | |||
130 | { | 130 | { |
131 | struct pci_controller *hose; | 131 | struct pci_controller *hose; |
132 | struct device_node *node; | 132 | struct device_node *node; |
133 | unsigned int *interrupt; | 133 | const unsigned int *interrupt; |
134 | int busnr; | 134 | int busnr; |
135 | int len; | 135 | int len; |
136 | u8 slot; | 136 | u8 slot; |
@@ -147,7 +147,7 @@ void mpc7448_hpc2_fixup_irq(struct pci_dev *dev) | |||
147 | if (!node) | 147 | if (!node) |
148 | printk(KERN_ERR "No pci node found\n"); | 148 | printk(KERN_ERR "No pci node found\n"); |
149 | 149 | ||
150 | interrupt = (unsigned int *) get_property(node, "interrupt-map", &len); | 150 | interrupt = get_property(node, "interrupt-map", &len); |
151 | slot = find_slot_by_devfn(interrupt, dev->devfn); | 151 | slot = find_slot_by_devfn(interrupt, dev->devfn); |
152 | pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); | 152 | pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); |
153 | if (pin == 0 || pin > 4) | 153 | if (pin == 0 || pin > 4) |
@@ -176,9 +176,9 @@ static void __init mpc7448_hpc2_setup_arch(void) | |||
176 | 176 | ||
177 | cpu = of_find_node_by_type(NULL, "cpu"); | 177 | cpu = of_find_node_by_type(NULL, "cpu"); |
178 | if (cpu != 0) { | 178 | if (cpu != 0) { |
179 | unsigned int *fp; | 179 | const unsigned int *fp; |
180 | 180 | ||
181 | fp = (int *)get_property(cpu, "clock-frequency", NULL); | 181 | fp = get_property(cpu, "clock-frequency", NULL); |
182 | if (fp != 0) | 182 | if (fp != 0) |
183 | loops_per_jiffy = *fp / HZ; | 183 | loops_per_jiffy = *fp / HZ; |
184 | else | 184 | else |