diff options
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/52xx/lite5200.c | 4 | ||||
-rw-r--r-- | arch/powerpc/platforms/85xx/mpc85xx_ds.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/iommu.c | 8 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/pervasive.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/ras.c | 10 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/spu_base.c | 8 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/spu_callbacks.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/spu_manage.c | 8 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/file.c | 4 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/run.c | 10 | ||||
-rw-r--r-- | arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c | 10 | ||||
-rw-r--r-- | arch/powerpc/platforms/ps3/setup.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/pseries/pci_dlpar.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/pseries/reconfig.c | 12 |
14 files changed, 42 insertions, 42 deletions
diff --git a/arch/powerpc/platforms/52xx/lite5200.c b/arch/powerpc/platforms/52xx/lite5200.c index 956f459e175c..6d584f4e3c9a 100644 --- a/arch/powerpc/platforms/52xx/lite5200.c +++ b/arch/powerpc/platforms/52xx/lite5200.c | |||
@@ -63,7 +63,7 @@ lite5200_fix_clock_config(void) | |||
63 | of_node_put(np); | 63 | of_node_put(np); |
64 | if (!cdm) { | 64 | if (!cdm) { |
65 | printk(KERN_ERR "%s() failed; expect abnormal behaviour\n", | 65 | printk(KERN_ERR "%s() failed; expect abnormal behaviour\n", |
66 | __FUNCTION__); | 66 | __func__); |
67 | return; | 67 | return; |
68 | } | 68 | } |
69 | 69 | ||
@@ -98,7 +98,7 @@ lite5200_fix_port_config(void) | |||
98 | of_node_put(np); | 98 | of_node_put(np); |
99 | if (!gpio) { | 99 | if (!gpio) { |
100 | printk(KERN_ERR "%s() failed. expect abnormal behavior\n", | 100 | printk(KERN_ERR "%s() failed. expect abnormal behavior\n", |
101 | __FUNCTION__); | 101 | __func__); |
102 | return; | 102 | return; |
103 | } | 103 | } |
104 | 104 | ||
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_ds.c b/arch/powerpc/platforms/85xx/mpc85xx_ds.c index bdb3d0b38cd2..2865d019afc3 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_ds.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_ds.c | |||
@@ -36,7 +36,7 @@ | |||
36 | #undef DEBUG | 36 | #undef DEBUG |
37 | 37 | ||
38 | #ifdef DEBUG | 38 | #ifdef DEBUG |
39 | #define DBG(fmt, args...) printk(KERN_ERR "%s: " fmt, __FUNCTION__, ## args) | 39 | #define DBG(fmt, args...) printk(KERN_ERR "%s: " fmt, __func__, ## args) |
40 | #else | 40 | #else |
41 | #define DBG(fmt, args...) | 41 | #define DBG(fmt, args...) |
42 | #endif | 42 | #endif |
diff --git a/arch/powerpc/platforms/cell/iommu.c b/arch/powerpc/platforms/cell/iommu.c index 49fe641d4345..45646b2b4af4 100644 --- a/arch/powerpc/platforms/cell/iommu.c +++ b/arch/powerpc/platforms/cell/iommu.c | |||
@@ -316,7 +316,7 @@ static void cell_iommu_setup_stab(struct cbe_iommu *iommu, | |||
316 | segments = max(dbase + dsize, fbase + fsize) >> IO_SEGMENT_SHIFT; | 316 | segments = max(dbase + dsize, fbase + fsize) >> IO_SEGMENT_SHIFT; |
317 | 317 | ||
318 | pr_debug("%s: iommu[%d]: segments: %lu\n", | 318 | pr_debug("%s: iommu[%d]: segments: %lu\n", |
319 | __FUNCTION__, iommu->nid, segments); | 319 | __func__, iommu->nid, segments); |
320 | 320 | ||
321 | /* set up the segment table */ | 321 | /* set up the segment table */ |
322 | stab_size = segments * sizeof(unsigned long); | 322 | stab_size = segments * sizeof(unsigned long); |
@@ -343,7 +343,7 @@ static unsigned long *cell_iommu_alloc_ptab(struct cbe_iommu *iommu, | |||
343 | (1 << 12) / sizeof(unsigned long)); | 343 | (1 << 12) / sizeof(unsigned long)); |
344 | 344 | ||
345 | ptab_size = segments * pages_per_segment * sizeof(unsigned long); | 345 | ptab_size = segments * pages_per_segment * sizeof(unsigned long); |
346 | pr_debug("%s: iommu[%d]: ptab_size: %lu, order: %d\n", __FUNCTION__, | 346 | pr_debug("%s: iommu[%d]: ptab_size: %lu, order: %d\n", __func__, |
347 | iommu->nid, ptab_size, get_order(ptab_size)); | 347 | iommu->nid, ptab_size, get_order(ptab_size)); |
348 | page = alloc_pages_node(iommu->nid, GFP_KERNEL, get_order(ptab_size)); | 348 | page = alloc_pages_node(iommu->nid, GFP_KERNEL, get_order(ptab_size)); |
349 | BUG_ON(!page); | 349 | BUG_ON(!page); |
@@ -355,7 +355,7 @@ static unsigned long *cell_iommu_alloc_ptab(struct cbe_iommu *iommu, | |||
355 | n_pte_pages = (pages_per_segment * sizeof(unsigned long)) >> 12; | 355 | n_pte_pages = (pages_per_segment * sizeof(unsigned long)) >> 12; |
356 | 356 | ||
357 | pr_debug("%s: iommu[%d]: stab at %p, ptab at %p, n_pte_pages: %lu\n", | 357 | pr_debug("%s: iommu[%d]: stab at %p, ptab at %p, n_pte_pages: %lu\n", |
358 | __FUNCTION__, iommu->nid, iommu->stab, ptab, | 358 | __func__, iommu->nid, iommu->stab, ptab, |
359 | n_pte_pages); | 359 | n_pte_pages); |
360 | 360 | ||
361 | /* initialise the STEs */ | 361 | /* initialise the STEs */ |
@@ -394,7 +394,7 @@ static void cell_iommu_enable_hardware(struct cbe_iommu *iommu) | |||
394 | 394 | ||
395 | if (cell_iommu_find_ioc(iommu->nid, &xlate_base)) | 395 | if (cell_iommu_find_ioc(iommu->nid, &xlate_base)) |
396 | panic("%s: missing IOC register mappings for node %d\n", | 396 | panic("%s: missing IOC register mappings for node %d\n", |
397 | __FUNCTION__, iommu->nid); | 397 | __func__, iommu->nid); |
398 | 398 | ||
399 | iommu->xlate_regs = ioremap(xlate_base, IOC_Reg_Size); | 399 | iommu->xlate_regs = ioremap(xlate_base, IOC_Reg_Size); |
400 | iommu->cmd_regs = iommu->xlate_regs + IOC_IOCmd_Offset; | 400 | iommu->cmd_regs = iommu->xlate_regs + IOC_IOCmd_Offset; |
diff --git a/arch/powerpc/platforms/cell/pervasive.c b/arch/powerpc/platforms/cell/pervasive.c index 0304589c0a80..8a3631ce912b 100644 --- a/arch/powerpc/platforms/cell/pervasive.c +++ b/arch/powerpc/platforms/cell/pervasive.c | |||
@@ -65,7 +65,7 @@ static void cbe_power_save(void) | |||
65 | break; | 65 | break; |
66 | default: | 66 | default: |
67 | printk(KERN_WARNING "%s: unknown configuration\n", | 67 | printk(KERN_WARNING "%s: unknown configuration\n", |
68 | __FUNCTION__); | 68 | __func__); |
69 | break; | 69 | break; |
70 | } | 70 | } |
71 | mtspr(SPRN_TSC_CELL, thread_switch_control); | 71 | mtspr(SPRN_TSC_CELL, thread_switch_control); |
diff --git a/arch/powerpc/platforms/cell/ras.c b/arch/powerpc/platforms/cell/ras.c index e43024c0392e..655704ad03cf 100644 --- a/arch/powerpc/platforms/cell/ras.c +++ b/arch/powerpc/platforms/cell/ras.c | |||
@@ -132,7 +132,7 @@ static int __init cbe_ptcal_enable_on_node(int nid, int order) | |||
132 | (unsigned int)(addr >> 32), | 132 | (unsigned int)(addr >> 32), |
133 | (unsigned int)(addr & 0xffffffff))) { | 133 | (unsigned int)(addr & 0xffffffff))) { |
134 | printk(KERN_ERR "%s: error enabling PTCAL on node %d!\n", | 134 | printk(KERN_ERR "%s: error enabling PTCAL on node %d!\n", |
135 | __FUNCTION__, nid); | 135 | __func__, nid); |
136 | goto out_free_pages; | 136 | goto out_free_pages; |
137 | } | 137 | } |
138 | 138 | ||
@@ -162,7 +162,7 @@ static int __init cbe_ptcal_enable(void) | |||
162 | if (!size) | 162 | if (!size) |
163 | return -ENODEV; | 163 | return -ENODEV; |
164 | 164 | ||
165 | pr_debug("%s: enabling PTCAL, size = 0x%x\n", __FUNCTION__, *size); | 165 | pr_debug("%s: enabling PTCAL, size = 0x%x\n", __func__, *size); |
166 | order = get_order(*size); | 166 | order = get_order(*size); |
167 | of_node_put(np); | 167 | of_node_put(np); |
168 | 168 | ||
@@ -180,7 +180,7 @@ static int __init cbe_ptcal_enable(void) | |||
180 | const u32 *nid = of_get_property(np, "node-id", NULL); | 180 | const u32 *nid = of_get_property(np, "node-id", NULL); |
181 | if (!nid) { | 181 | if (!nid) { |
182 | printk(KERN_ERR "%s: node %s is missing node-id?\n", | 182 | printk(KERN_ERR "%s: node %s is missing node-id?\n", |
183 | __FUNCTION__, np->full_name); | 183 | __func__, np->full_name); |
184 | continue; | 184 | continue; |
185 | } | 185 | } |
186 | cbe_ptcal_enable_on_node(*nid, order); | 186 | cbe_ptcal_enable_on_node(*nid, order); |
@@ -195,13 +195,13 @@ static int cbe_ptcal_disable(void) | |||
195 | struct ptcal_area *area, *tmp; | 195 | struct ptcal_area *area, *tmp; |
196 | int ret = 0; | 196 | int ret = 0; |
197 | 197 | ||
198 | pr_debug("%s: disabling PTCAL\n", __FUNCTION__); | 198 | pr_debug("%s: disabling PTCAL\n", __func__); |
199 | 199 | ||
200 | list_for_each_entry_safe(area, tmp, &ptcal_list, list) { | 200 | list_for_each_entry_safe(area, tmp, &ptcal_list, list) { |
201 | /* disable ptcal on this node */ | 201 | /* disable ptcal on this node */ |
202 | if (rtas_call(ptcal_stop_tok, 1, 1, NULL, area->nid)) { | 202 | if (rtas_call(ptcal_stop_tok, 1, 1, NULL, area->nid)) { |
203 | printk(KERN_ERR "%s: error disabling PTCAL " | 203 | printk(KERN_ERR "%s: error disabling PTCAL " |
204 | "on node %d!\n", __FUNCTION__, | 204 | "on node %d!\n", __func__, |
205 | area->nid); | 205 | area->nid); |
206 | ret = -EIO; | 206 | ret = -EIO; |
207 | continue; | 207 | continue; |
diff --git a/arch/powerpc/platforms/cell/spu_base.c b/arch/powerpc/platforms/cell/spu_base.c index 712001f6b7da..6bab44b7716b 100644 --- a/arch/powerpc/platforms/cell/spu_base.c +++ b/arch/powerpc/platforms/cell/spu_base.c | |||
@@ -165,7 +165,7 @@ static int __spu_trap_data_seg(struct spu *spu, unsigned long ea) | |||
165 | struct spu_slb slb; | 165 | struct spu_slb slb; |
166 | int psize; | 166 | int psize; |
167 | 167 | ||
168 | pr_debug("%s\n", __FUNCTION__); | 168 | pr_debug("%s\n", __func__); |
169 | 169 | ||
170 | slb.esid = (ea & ESID_MASK) | SLB_ESID_V; | 170 | slb.esid = (ea & ESID_MASK) | SLB_ESID_V; |
171 | 171 | ||
@@ -215,7 +215,7 @@ static int __spu_trap_data_seg(struct spu *spu, unsigned long ea) | |||
215 | extern int hash_page(unsigned long ea, unsigned long access, unsigned long trap); //XXX | 215 | extern int hash_page(unsigned long ea, unsigned long access, unsigned long trap); //XXX |
216 | static int __spu_trap_data_map(struct spu *spu, unsigned long ea, u64 dsisr) | 216 | static int __spu_trap_data_map(struct spu *spu, unsigned long ea, u64 dsisr) |
217 | { | 217 | { |
218 | pr_debug("%s, %lx, %lx\n", __FUNCTION__, dsisr, ea); | 218 | pr_debug("%s, %lx, %lx\n", __func__, dsisr, ea); |
219 | 219 | ||
220 | /* Handle kernel space hash faults immediately. | 220 | /* Handle kernel space hash faults immediately. |
221 | User hash faults need to be deferred to process context. */ | 221 | User hash faults need to be deferred to process context. */ |
@@ -351,7 +351,7 @@ spu_irq_class_1(int irq, void *data) | |||
351 | __spu_trap_data_seg(spu, dar); | 351 | __spu_trap_data_seg(spu, dar); |
352 | 352 | ||
353 | spin_unlock(&spu->register_lock); | 353 | spin_unlock(&spu->register_lock); |
354 | pr_debug("%s: %lx %lx %lx %lx\n", __FUNCTION__, mask, stat, | 354 | pr_debug("%s: %lx %lx %lx %lx\n", __func__, mask, stat, |
355 | dar, dsisr); | 355 | dar, dsisr); |
356 | 356 | ||
357 | if (stat & CLASS1_STORAGE_FAULT_INTR) | 357 | if (stat & CLASS1_STORAGE_FAULT_INTR) |
@@ -726,7 +726,7 @@ static int __init init_spu_base(void) | |||
726 | 726 | ||
727 | if (ret < 0) { | 727 | if (ret < 0) { |
728 | printk(KERN_WARNING "%s: Error initializing spus\n", | 728 | printk(KERN_WARNING "%s: Error initializing spus\n", |
729 | __FUNCTION__); | 729 | __func__); |
730 | goto out_unregister_sysdev_class; | 730 | goto out_unregister_sysdev_class; |
731 | } | 731 | } |
732 | 732 | ||
diff --git a/arch/powerpc/platforms/cell/spu_callbacks.c b/arch/powerpc/platforms/cell/spu_callbacks.c index dceb8b6a9382..19f6bfdbb933 100644 --- a/arch/powerpc/platforms/cell/spu_callbacks.c +++ b/arch/powerpc/platforms/cell/spu_callbacks.c | |||
@@ -54,7 +54,7 @@ long spu_sys_callback(struct spu_syscall_block *s) | |||
54 | long (*syscall)(u64 a1, u64 a2, u64 a3, u64 a4, u64 a5, u64 a6); | 54 | long (*syscall)(u64 a1, u64 a2, u64 a3, u64 a4, u64 a5, u64 a6); |
55 | 55 | ||
56 | if (s->nr_ret >= ARRAY_SIZE(spu_syscall_table)) { | 56 | if (s->nr_ret >= ARRAY_SIZE(spu_syscall_table)) { |
57 | pr_debug("%s: invalid syscall #%ld", __FUNCTION__, s->nr_ret); | 57 | pr_debug("%s: invalid syscall #%ld", __func__, s->nr_ret); |
58 | return -ENOSYS; | 58 | return -ENOSYS; |
59 | } | 59 | } |
60 | 60 | ||
diff --git a/arch/powerpc/platforms/cell/spu_manage.c b/arch/powerpc/platforms/cell/spu_manage.c index d351bdebf5f1..4c506c1463cd 100644 --- a/arch/powerpc/platforms/cell/spu_manage.c +++ b/arch/powerpc/platforms/cell/spu_manage.c | |||
@@ -92,7 +92,7 @@ static int __init spu_map_interrupts_old(struct spu *spu, | |||
92 | 92 | ||
93 | tmp = of_get_property(np->parent->parent, "node-id", NULL); | 93 | tmp = of_get_property(np->parent->parent, "node-id", NULL); |
94 | if (!tmp) { | 94 | if (!tmp) { |
95 | printk(KERN_WARNING "%s: can't find node-id\n", __FUNCTION__); | 95 | printk(KERN_WARNING "%s: can't find node-id\n", __func__); |
96 | nid = spu->node; | 96 | nid = spu->node; |
97 | } else | 97 | } else |
98 | nid = tmp[0]; | 98 | nid = tmp[0]; |
@@ -296,7 +296,7 @@ static int __init of_enumerate_spus(int (*fn)(void *data)) | |||
296 | ret = fn(node); | 296 | ret = fn(node); |
297 | if (ret) { | 297 | if (ret) { |
298 | printk(KERN_WARNING "%s: Error initializing %s\n", | 298 | printk(KERN_WARNING "%s: Error initializing %s\n", |
299 | __FUNCTION__, node->name); | 299 | __func__, node->name); |
300 | break; | 300 | break; |
301 | } | 301 | } |
302 | n++; | 302 | n++; |
@@ -327,7 +327,7 @@ static int __init of_create_spu(struct spu *spu, void *data) | |||
327 | if (!legacy_map) { | 327 | if (!legacy_map) { |
328 | legacy_map = 1; | 328 | legacy_map = 1; |
329 | printk(KERN_WARNING "%s: Legacy device tree found, " | 329 | printk(KERN_WARNING "%s: Legacy device tree found, " |
330 | "trying to map old style\n", __FUNCTION__); | 330 | "trying to map old style\n", __func__); |
331 | } | 331 | } |
332 | ret = spu_map_device_old(spu); | 332 | ret = spu_map_device_old(spu); |
333 | if (ret) { | 333 | if (ret) { |
@@ -342,7 +342,7 @@ static int __init of_create_spu(struct spu *spu, void *data) | |||
342 | if (!legacy_irq) { | 342 | if (!legacy_irq) { |
343 | legacy_irq = 1; | 343 | legacy_irq = 1; |
344 | printk(KERN_WARNING "%s: Legacy device tree found, " | 344 | printk(KERN_WARNING "%s: Legacy device tree found, " |
345 | "trying old style irq\n", __FUNCTION__); | 345 | "trying old style irq\n", __func__); |
346 | } | 346 | } |
347 | ret = spu_map_interrupts_old(spu, spe); | 347 | ret = spu_map_interrupts_old(spu, spe); |
348 | if (ret) { | 348 | if (ret) { |
diff --git a/arch/powerpc/platforms/cell/spufs/file.c b/arch/powerpc/platforms/cell/spufs/file.c index f7a7e8635fb6..f14d3a0a8615 100644 --- a/arch/powerpc/platforms/cell/spufs/file.c +++ b/arch/powerpc/platforms/cell/spufs/file.c | |||
@@ -1556,7 +1556,7 @@ void spufs_mfc_callback(struct spu *spu) | |||
1556 | 1556 | ||
1557 | wake_up_all(&ctx->mfc_wq); | 1557 | wake_up_all(&ctx->mfc_wq); |
1558 | 1558 | ||
1559 | pr_debug("%s %s\n", __FUNCTION__, spu->name); | 1559 | pr_debug("%s %s\n", __func__, spu->name); |
1560 | if (ctx->mfc_fasync) { | 1560 | if (ctx->mfc_fasync) { |
1561 | u32 free_elements, tagstatus; | 1561 | u32 free_elements, tagstatus; |
1562 | unsigned int mask; | 1562 | unsigned int mask; |
@@ -1790,7 +1790,7 @@ static unsigned int spufs_mfc_poll(struct file *file,poll_table *wait) | |||
1790 | if (tagstatus & ctx->tagwait) | 1790 | if (tagstatus & ctx->tagwait) |
1791 | mask |= POLLIN | POLLRDNORM; | 1791 | mask |= POLLIN | POLLRDNORM; |
1792 | 1792 | ||
1793 | pr_debug("%s: free %d tagstatus %d tagwait %d\n", __FUNCTION__, | 1793 | pr_debug("%s: free %d tagstatus %d tagwait %d\n", __func__, |
1794 | free_elements, tagstatus, ctx->tagwait); | 1794 | free_elements, tagstatus, ctx->tagwait); |
1795 | 1795 | ||
1796 | return mask; | 1796 | return mask; |
diff --git a/arch/powerpc/platforms/cell/spufs/run.c b/arch/powerpc/platforms/cell/spufs/run.c index cac69e116776..5986d08115af 100644 --- a/arch/powerpc/platforms/cell/spufs/run.c +++ b/arch/powerpc/platforms/cell/spufs/run.c | |||
@@ -98,7 +98,7 @@ static int spu_setup_isolated(struct spu_context *ctx) | |||
98 | != MFC_CNTL_PURGE_DMA_COMPLETE) { | 98 | != MFC_CNTL_PURGE_DMA_COMPLETE) { |
99 | if (time_after(jiffies, timeout)) { | 99 | if (time_after(jiffies, timeout)) { |
100 | printk(KERN_ERR "%s: timeout flushing MFC DMA queue\n", | 100 | printk(KERN_ERR "%s: timeout flushing MFC DMA queue\n", |
101 | __FUNCTION__); | 101 | __func__); |
102 | ret = -EIO; | 102 | ret = -EIO; |
103 | goto out; | 103 | goto out; |
104 | } | 104 | } |
@@ -124,7 +124,7 @@ static int spu_setup_isolated(struct spu_context *ctx) | |||
124 | status_loading) { | 124 | status_loading) { |
125 | if (time_after(jiffies, timeout)) { | 125 | if (time_after(jiffies, timeout)) { |
126 | printk(KERN_ERR "%s: timeout waiting for loader\n", | 126 | printk(KERN_ERR "%s: timeout waiting for loader\n", |
127 | __FUNCTION__); | 127 | __func__); |
128 | ret = -EIO; | 128 | ret = -EIO; |
129 | goto out_drop_priv; | 129 | goto out_drop_priv; |
130 | } | 130 | } |
@@ -134,7 +134,7 @@ static int spu_setup_isolated(struct spu_context *ctx) | |||
134 | if (!(status & SPU_STATUS_RUNNING)) { | 134 | if (!(status & SPU_STATUS_RUNNING)) { |
135 | /* If isolated LOAD has failed: run SPU, we will get a stop-and | 135 | /* If isolated LOAD has failed: run SPU, we will get a stop-and |
136 | * signal later. */ | 136 | * signal later. */ |
137 | pr_debug("%s: isolated LOAD failed\n", __FUNCTION__); | 137 | pr_debug("%s: isolated LOAD failed\n", __func__); |
138 | ctx->ops->runcntl_write(ctx, SPU_RUNCNTL_RUNNABLE); | 138 | ctx->ops->runcntl_write(ctx, SPU_RUNCNTL_RUNNABLE); |
139 | ret = -EACCES; | 139 | ret = -EACCES; |
140 | goto out_drop_priv; | 140 | goto out_drop_priv; |
@@ -142,7 +142,7 @@ static int spu_setup_isolated(struct spu_context *ctx) | |||
142 | 142 | ||
143 | if (!(status & SPU_STATUS_ISOLATED_STATE)) { | 143 | if (!(status & SPU_STATUS_ISOLATED_STATE)) { |
144 | /* This isn't allowed by the CBEA, but check anyway */ | 144 | /* This isn't allowed by the CBEA, but check anyway */ |
145 | pr_debug("%s: SPU fell out of isolated mode?\n", __FUNCTION__); | 145 | pr_debug("%s: SPU fell out of isolated mode?\n", __func__); |
146 | ctx->ops->runcntl_write(ctx, SPU_RUNCNTL_STOP); | 146 | ctx->ops->runcntl_write(ctx, SPU_RUNCNTL_STOP); |
147 | ret = -EINVAL; | 147 | ret = -EINVAL; |
148 | goto out_drop_priv; | 148 | goto out_drop_priv; |
@@ -282,7 +282,7 @@ static int spu_handle_restartsys(struct spu_context *ctx, long *spu_ret, | |||
282 | break; | 282 | break; |
283 | default: | 283 | default: |
284 | printk(KERN_WARNING "%s: unexpected return code %ld\n", | 284 | printk(KERN_WARNING "%s: unexpected return code %ld\n", |
285 | __FUNCTION__, *spu_ret); | 285 | __func__, *spu_ret); |
286 | ret = 0; | 286 | ret = 0; |
287 | } | 287 | } |
288 | return ret; | 288 | return ret; |
diff --git a/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c b/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c index d4f8bf581e3a..84e2d78b9a62 100644 --- a/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c +++ b/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c | |||
@@ -117,11 +117,11 @@ static void __init mpc7448_hpc2_init_IRQ(void) | |||
117 | } | 117 | } |
118 | 118 | ||
119 | if (mpic_paddr == 0) { | 119 | if (mpic_paddr == 0) { |
120 | printk("%s: No tsi108 PIC found !\n", __FUNCTION__); | 120 | printk("%s: No tsi108 PIC found !\n", __func__); |
121 | return; | 121 | return; |
122 | } | 122 | } |
123 | 123 | ||
124 | DBG("%s: tsi108 pic phys_addr = 0x%x\n", __FUNCTION__, | 124 | DBG("%s: tsi108 pic phys_addr = 0x%x\n", __func__, |
125 | (u32) mpic_paddr); | 125 | (u32) mpic_paddr); |
126 | 126 | ||
127 | mpic = mpic_alloc(tsi_pic, mpic_paddr, | 127 | mpic = mpic_alloc(tsi_pic, mpic_paddr, |
@@ -140,17 +140,17 @@ static void __init mpc7448_hpc2_init_IRQ(void) | |||
140 | #ifdef CONFIG_PCI | 140 | #ifdef CONFIG_PCI |
141 | tsi_pci = of_find_node_by_type(NULL, "pci"); | 141 | tsi_pci = of_find_node_by_type(NULL, "pci"); |
142 | if (tsi_pci == NULL) { | 142 | if (tsi_pci == NULL) { |
143 | printk("%s: No tsi108 pci node found !\n", __FUNCTION__); | 143 | printk("%s: No tsi108 pci node found !\n", __func__); |
144 | return; | 144 | return; |
145 | } | 145 | } |
146 | cascade_node = of_find_node_by_type(NULL, "pic-router"); | 146 | cascade_node = of_find_node_by_type(NULL, "pic-router"); |
147 | if (cascade_node == NULL) { | 147 | if (cascade_node == NULL) { |
148 | printk("%s: No tsi108 pci cascade node found !\n", __FUNCTION__); | 148 | printk("%s: No tsi108 pci cascade node found !\n", __func__); |
149 | return; | 149 | return; |
150 | } | 150 | } |
151 | 151 | ||
152 | cascade_pci_irq = irq_of_parse_and_map(tsi_pci, 0); | 152 | cascade_pci_irq = irq_of_parse_and_map(tsi_pci, 0); |
153 | DBG("%s: tsi108 cascade_pci_irq = 0x%x\n", __FUNCTION__, | 153 | DBG("%s: tsi108 cascade_pci_irq = 0x%x\n", __func__, |
154 | (u32) cascade_pci_irq); | 154 | (u32) cascade_pci_irq); |
155 | tsi108_pci_int_init(cascade_node); | 155 | tsi108_pci_int_init(cascade_node); |
156 | set_irq_data(cascade_pci_irq, mpic); | 156 | set_irq_data(cascade_pci_irq, mpic); |
diff --git a/arch/powerpc/platforms/ps3/setup.c b/arch/powerpc/platforms/ps3/setup.c index c144669a0d3f..a413abbd4123 100644 --- a/arch/powerpc/platforms/ps3/setup.c +++ b/arch/powerpc/platforms/ps3/setup.c | |||
@@ -126,7 +126,7 @@ static void __init prealloc(struct ps3_prealloc *p) | |||
126 | 126 | ||
127 | p->address = __alloc_bootmem(p->size, p->align, __pa(MAX_DMA_ADDRESS)); | 127 | p->address = __alloc_bootmem(p->size, p->align, __pa(MAX_DMA_ADDRESS)); |
128 | if (!p->address) { | 128 | if (!p->address) { |
129 | printk(KERN_ERR "%s: Cannot allocate %s\n", __FUNCTION__, | 129 | printk(KERN_ERR "%s: Cannot allocate %s\n", __func__, |
130 | p->name); | 130 | p->name); |
131 | return; | 131 | return; |
132 | } | 132 | } |
diff --git a/arch/powerpc/platforms/pseries/pci_dlpar.c b/arch/powerpc/platforms/pseries/pci_dlpar.c index 5a5a19e40bb4..0d7229cde0e9 100644 --- a/arch/powerpc/platforms/pseries/pci_dlpar.c +++ b/arch/powerpc/platforms/pseries/pci_dlpar.c | |||
@@ -123,7 +123,7 @@ pcibios_pci_config_bridge(struct pci_dev *dev) | |||
123 | /* Add to children of PCI bridge dev->bus */ | 123 | /* Add to children of PCI bridge dev->bus */ |
124 | child_bus = pci_add_new_bus(dev->bus, dev, sec_busno); | 124 | child_bus = pci_add_new_bus(dev->bus, dev, sec_busno); |
125 | if (!child_bus) { | 125 | if (!child_bus) { |
126 | printk (KERN_ERR "%s: could not add second bus\n", __FUNCTION__); | 126 | printk (KERN_ERR "%s: could not add second bus\n", __func__); |
127 | return -EIO; | 127 | return -EIO; |
128 | } | 128 | } |
129 | sprintf(child_bus->name, "PCI Bus #%02x", child_bus->number); | 129 | sprintf(child_bus->name, "PCI Bus #%02x", child_bus->number); |
diff --git a/arch/powerpc/platforms/pseries/reconfig.c b/arch/powerpc/platforms/pseries/reconfig.c index 2800fced8c7c..ac75c10de278 100644 --- a/arch/powerpc/platforms/pseries/reconfig.c +++ b/arch/powerpc/platforms/pseries/reconfig.c | |||
@@ -222,14 +222,14 @@ static char * parse_next_property(char *buf, char *end, char **name, int *length | |||
222 | tmp = strchr(buf, ' '); | 222 | tmp = strchr(buf, ' '); |
223 | if (!tmp) { | 223 | if (!tmp) { |
224 | printk(KERN_ERR "property parse failed in %s at line %d\n", | 224 | printk(KERN_ERR "property parse failed in %s at line %d\n", |
225 | __FUNCTION__, __LINE__); | 225 | __func__, __LINE__); |
226 | return NULL; | 226 | return NULL; |
227 | } | 227 | } |
228 | *tmp = '\0'; | 228 | *tmp = '\0'; |
229 | 229 | ||
230 | if (++tmp >= end) { | 230 | if (++tmp >= end) { |
231 | printk(KERN_ERR "property parse failed in %s at line %d\n", | 231 | printk(KERN_ERR "property parse failed in %s at line %d\n", |
232 | __FUNCTION__, __LINE__); | 232 | __func__, __LINE__); |
233 | return NULL; | 233 | return NULL; |
234 | } | 234 | } |
235 | 235 | ||
@@ -238,12 +238,12 @@ static char * parse_next_property(char *buf, char *end, char **name, int *length | |||
238 | *length = simple_strtoul(tmp, &tmp, 10); | 238 | *length = simple_strtoul(tmp, &tmp, 10); |
239 | if (*length == -1) { | 239 | if (*length == -1) { |
240 | printk(KERN_ERR "property parse failed in %s at line %d\n", | 240 | printk(KERN_ERR "property parse failed in %s at line %d\n", |
241 | __FUNCTION__, __LINE__); | 241 | __func__, __LINE__); |
242 | return NULL; | 242 | return NULL; |
243 | } | 243 | } |
244 | if (*tmp != ' ' || ++tmp >= end) { | 244 | if (*tmp != ' ' || ++tmp >= end) { |
245 | printk(KERN_ERR "property parse failed in %s at line %d\n", | 245 | printk(KERN_ERR "property parse failed in %s at line %d\n", |
246 | __FUNCTION__, __LINE__); | 246 | __func__, __LINE__); |
247 | return NULL; | 247 | return NULL; |
248 | } | 248 | } |
249 | 249 | ||
@@ -252,12 +252,12 @@ static char * parse_next_property(char *buf, char *end, char **name, int *length | |||
252 | tmp += *length; | 252 | tmp += *length; |
253 | if (tmp > end) { | 253 | if (tmp > end) { |
254 | printk(KERN_ERR "property parse failed in %s at line %d\n", | 254 | printk(KERN_ERR "property parse failed in %s at line %d\n", |
255 | __FUNCTION__, __LINE__); | 255 | __func__, __LINE__); |
256 | return NULL; | 256 | return NULL; |
257 | } | 257 | } |
258 | else if (tmp < end && *tmp != ' ' && *tmp != '\0') { | 258 | else if (tmp < end && *tmp != ' ' && *tmp != '\0') { |
259 | printk(KERN_ERR "property parse failed in %s at line %d\n", | 259 | printk(KERN_ERR "property parse failed in %s at line %d\n", |
260 | __FUNCTION__, __LINE__); | 260 | __func__, __LINE__); |
261 | return NULL; | 261 | return NULL; |
262 | } | 262 | } |
263 | tmp++; | 263 | tmp++; |