Commit e48b1b45 authored by Harvey Harrison's avatar Harvey Harrison Committed by Paul Mackerras

[POWERPC] Replace remaining __FUNCTION__ occurrences

__FUNCTION__ is gcc-specific, use __func__
Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent a78bfbfc
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#define check_err(err) \ #define check_err(err) \
({ \ ({ \
if (BAD_ERROR(err) || ((err < 0) && DEBUG)) \ if (BAD_ERROR(err) || ((err < 0) && DEBUG)) \
printf("%s():%d %s\n\r", __FUNCTION__, __LINE__, \ printf("%s():%d %s\n\r", __func__, __LINE__, \
fdt_strerror(err)); \ fdt_strerror(err)); \
if (BAD_ERROR(err)) \ if (BAD_ERROR(err)) \
exit(); \ exit(); \
......
...@@ -183,7 +183,7 @@ static int ibmebus_create_devices(const struct of_device_id *matches) ...@@ -183,7 +183,7 @@ static int ibmebus_create_devices(const struct of_device_id *matches)
ret = ibmebus_create_device(child); ret = ibmebus_create_device(child);
if (ret) { if (ret) {
printk(KERN_ERR "%s: failed to create device (%i)", printk(KERN_ERR "%s: failed to create device (%i)",
__FUNCTION__, ret); __func__, ret);
of_node_put(child); of_node_put(child);
break; break;
} }
...@@ -269,7 +269,7 @@ static ssize_t ibmebus_store_probe(struct bus_type *bus, ...@@ -269,7 +269,7 @@ static ssize_t ibmebus_store_probe(struct bus_type *bus,
if (bus_find_device(&ibmebus_bus_type, NULL, path, if (bus_find_device(&ibmebus_bus_type, NULL, path,
ibmebus_match_path)) { ibmebus_match_path)) {
printk(KERN_WARNING "%s: %s has already been probed\n", printk(KERN_WARNING "%s: %s has already been probed\n",
__FUNCTION__, path); __func__, path);
rc = -EEXIST; rc = -EEXIST;
goto out; goto out;
} }
...@@ -279,7 +279,7 @@ static ssize_t ibmebus_store_probe(struct bus_type *bus, ...@@ -279,7 +279,7 @@ static ssize_t ibmebus_store_probe(struct bus_type *bus,
of_node_put(dn); of_node_put(dn);
} else { } else {
printk(KERN_WARNING "%s: no such device node: %s\n", printk(KERN_WARNING "%s: no such device node: %s\n",
__FUNCTION__, path); __func__, path);
rc = -ENODEV; rc = -ENODEV;
} }
...@@ -308,7 +308,7 @@ static ssize_t ibmebus_store_remove(struct bus_type *bus, ...@@ -308,7 +308,7 @@ static ssize_t ibmebus_store_remove(struct bus_type *bus,
return count; return count;
} else { } else {
printk(KERN_WARNING "%s: %s not on the bus\n", printk(KERN_WARNING "%s: %s not on the bus\n",
__FUNCTION__, path); __func__, path);
kfree(path); kfree(path);
return -ENODEV; return -ENODEV;
...@@ -337,14 +337,14 @@ static int __init ibmebus_bus_init(void) ...@@ -337,14 +337,14 @@ static int __init ibmebus_bus_init(void)
err = of_bus_type_init(&ibmebus_bus_type, "ibmebus"); err = of_bus_type_init(&ibmebus_bus_type, "ibmebus");
if (err) { if (err) {
printk(KERN_ERR "%s: failed to register IBM eBus.\n", printk(KERN_ERR "%s: failed to register IBM eBus.\n",
__FUNCTION__); __func__);
return err; return err;
} }
err = device_register(&ibmebus_bus_device); err = device_register(&ibmebus_bus_device);
if (err) { if (err) {
printk(KERN_WARNING "%s: device_register returned %i\n", printk(KERN_WARNING "%s: device_register returned %i\n",
__FUNCTION__, err); __func__, err);
bus_unregister(&ibmebus_bus_type); bus_unregister(&ibmebus_bus_type);
return err; return err;
......
...@@ -520,7 +520,7 @@ void iommu_free_table(struct iommu_table *tbl, const char *node_name) ...@@ -520,7 +520,7 @@ void iommu_free_table(struct iommu_table *tbl, const char *node_name)
unsigned int order; unsigned int order;
if (!tbl || !tbl->it_map) { if (!tbl || !tbl->it_map) {
printk(KERN_ERR "%s: expected TCE map for %s\n", __FUNCTION__, printk(KERN_ERR "%s: expected TCE map for %s\n", __func__,
node_name); node_name);
return; return;
} }
...@@ -530,7 +530,7 @@ void iommu_free_table(struct iommu_table *tbl, const char *node_name) ...@@ -530,7 +530,7 @@ void iommu_free_table(struct iommu_table *tbl, const char *node_name)
for (i = 0; i < (tbl->it_size/64); i++) { for (i = 0; i < (tbl->it_size/64); i++) {
if (tbl->it_map[i] != 0) { if (tbl->it_map[i] != 0) {
printk(KERN_WARNING "%s: Unexpected TCEs for %s\n", printk(KERN_WARNING "%s: Unexpected TCEs for %s\n",
__FUNCTION__, node_name); __func__, node_name);
break; break;
} }
} }
......
...@@ -99,7 +99,7 @@ static void __devinit pci_process_ISA_OF_ranges(struct device_node *isa_node, ...@@ -99,7 +99,7 @@ static void __devinit pci_process_ISA_OF_ranges(struct device_node *isa_node,
*/ */
if ((pci_addr != 0) || (isa_addr != 0)) { if ((pci_addr != 0) || (isa_addr != 0)) {
printk(KERN_ERR "unexpected isa to pci mapping: %s\n", printk(KERN_ERR "unexpected isa to pci mapping: %s\n",
__FUNCTION__); __func__);
return; return;
} }
......
...@@ -226,7 +226,7 @@ static void parse_system_parameter_string(struct seq_file *m) ...@@ -226,7 +226,7 @@ static void parse_system_parameter_string(struct seq_file *m)
unsigned char *local_buffer = kmalloc(SPLPAR_MAXLENGTH, GFP_KERNEL); unsigned char *local_buffer = kmalloc(SPLPAR_MAXLENGTH, GFP_KERNEL);
if (!local_buffer) { if (!local_buffer) {
printk(KERN_ERR "%s %s kmalloc failure at line %d \n", printk(KERN_ERR "%s %s kmalloc failure at line %d \n",
__FILE__, __FUNCTION__, __LINE__); __FILE__, __func__, __LINE__);
return; return;
} }
...@@ -243,14 +243,14 @@ static void parse_system_parameter_string(struct seq_file *m) ...@@ -243,14 +243,14 @@ static void parse_system_parameter_string(struct seq_file *m)
if (call_status != 0) { if (call_status != 0) {
printk(KERN_INFO printk(KERN_INFO
"%s %s Error calling get-system-parameter (0x%x)\n", "%s %s Error calling get-system-parameter (0x%x)\n",
__FILE__, __FUNCTION__, call_status); __FILE__, __func__, call_status);
} else { } else {
int splpar_strlen; int splpar_strlen;
int idx, w_idx; int idx, w_idx;
char *workbuffer = kzalloc(SPLPAR_MAXLENGTH, GFP_KERNEL); char *workbuffer = kzalloc(SPLPAR_MAXLENGTH, GFP_KERNEL);
if (!workbuffer) { if (!workbuffer) {
printk(KERN_ERR "%s %s kmalloc failure at line %d \n", printk(KERN_ERR "%s %s kmalloc failure at line %d \n",
__FILE__, __FUNCTION__, __LINE__); __FILE__, __func__, __LINE__);
kfree(local_buffer); kfree(local_buffer);
return; return;
} }
...@@ -484,10 +484,10 @@ static ssize_t lparcfg_write(struct file *file, const char __user * buf, ...@@ -484,10 +484,10 @@ static ssize_t lparcfg_write(struct file *file, const char __user * buf,
current_weight = (resource >> 5 * 8) & 0xFF; current_weight = (resource >> 5 * 8) & 0xFF;
pr_debug("%s: current_entitled = %lu, current_weight = %u\n", pr_debug("%s: current_entitled = %lu, current_weight = %u\n",
__FUNCTION__, current_entitled, current_weight); __func__, current_entitled, current_weight);
pr_debug("%s: new_entitled = %lu, new_weight = %u\n", pr_debug("%s: new_entitled = %lu, new_weight = %u\n",
__FUNCTION__, *new_entitled_ptr, *new_weight_ptr); __func__, *new_entitled_ptr, *new_weight_ptr);
retval = plpar_hcall_norets(H_SET_PPP, *new_entitled_ptr, retval = plpar_hcall_norets(H_SET_PPP, *new_entitled_ptr,
*new_weight_ptr); *new_weight_ptr);
...@@ -502,7 +502,7 @@ static ssize_t lparcfg_write(struct file *file, const char __user * buf, ...@@ -502,7 +502,7 @@ static ssize_t lparcfg_write(struct file *file, const char __user * buf,
retval = -EINVAL; retval = -EINVAL;
} else { } else {
printk(KERN_WARNING "%s: received unknown hv return code %ld", printk(KERN_WARNING "%s: received unknown hv return code %ld",
__FUNCTION__, retval); __func__, retval);
retval = -EIO; retval = -EIO;
} }
......
...@@ -507,7 +507,7 @@ int rtas_error_rc(int rtas_rc) ...@@ -507,7 +507,7 @@ int rtas_error_rc(int rtas_rc)
break; break;
default: default:
printk(KERN_ERR "%s: unexpected RTAS error %d\n", printk(KERN_ERR "%s: unexpected RTAS error %d\n",
__FUNCTION__, rtas_rc); __func__, rtas_rc);
rc = -ERANGE; rc = -ERANGE;
break; break;
} }
......
...@@ -807,7 +807,7 @@ int __init rtas_flash_init(void) ...@@ -807,7 +807,7 @@ int __init rtas_flash_init(void)
rtas_block_ctor); rtas_block_ctor);
if (!flash_block_cache) { if (!flash_block_cache) {
printk(KERN_ERR "%s: failed to create block cache\n", printk(KERN_ERR "%s: failed to create block cache\n",
__FUNCTION__); __func__);
rc = -ENOMEM; rc = -ENOMEM;
goto cleanup; goto cleanup;
} }
......
...@@ -326,7 +326,7 @@ int pcibios_remove_root_bus(struct pci_controller *phb) ...@@ -326,7 +326,7 @@ int pcibios_remove_root_bus(struct pci_controller *phb)
res = b->resource[0]; res = b->resource[0];
if (!res->flags) { if (!res->flags) {
printk(KERN_ERR "%s: no IO resource for PHB %s\n", __FUNCTION__, printk(KERN_ERR "%s: no IO resource for PHB %s\n", __func__,
b->name); b->name);
return 1; return 1;
} }
...@@ -334,13 +334,13 @@ int pcibios_remove_root_bus(struct pci_controller *phb) ...@@ -334,13 +334,13 @@ int pcibios_remove_root_bus(struct pci_controller *phb)
rc = pcibios_unmap_io_space(b); rc = pcibios_unmap_io_space(b);
if (rc) { if (rc) {
printk(KERN_ERR "%s: failed to unmap IO on bus %s\n", printk(KERN_ERR "%s: failed to unmap IO on bus %s\n",
__FUNCTION__, b->name); __func__, b->name);
return 1; return 1;
} }
if (release_resource(res)) { if (release_resource(res)) {
printk(KERN_ERR "%s: failed to release IO on bus %s\n", printk(KERN_ERR "%s: failed to release IO on bus %s\n",
__FUNCTION__, b->name); __func__, b->name);
return 1; return 1;
} }
...@@ -348,13 +348,13 @@ int pcibios_remove_root_bus(struct pci_controller *phb) ...@@ -348,13 +348,13 @@ int pcibios_remove_root_bus(struct pci_controller *phb)
res = b->resource[i]; res = b->resource[i];
if (!res->flags && i == 0) { if (!res->flags && i == 0) {
printk(KERN_ERR "%s: no MEM resource for PHB %s\n", printk(KERN_ERR "%s: no MEM resource for PHB %s\n",
__FUNCTION__, b->name); __func__, b->name);
return 1; return 1;
} }
if (res->flags && release_resource(res)) { if (res->flags && release_resource(res)) {
printk(KERN_ERR printk(KERN_ERR
"%s: failed to release IO %d on bus %s\n", "%s: failed to release IO %d on bus %s\n",
__FUNCTION__, i, b->name); __func__, i, b->name);
return 1; return 1;
} }
} }
......
...@@ -139,7 +139,7 @@ static int vio_bus_remove(struct device *dev) ...@@ -139,7 +139,7 @@ static int vio_bus_remove(struct device *dev)
*/ */
int vio_register_driver(struct vio_driver *viodrv) int vio_register_driver(struct vio_driver *viodrv)
{ {
printk(KERN_DEBUG "%s: driver %s registering\n", __FUNCTION__, printk(KERN_DEBUG "%s: driver %s registering\n", __func__,
viodrv->driver.name); viodrv->driver.name);
/* fill in 'struct driver' fields */ /* fill in 'struct driver' fields */
...@@ -184,7 +184,7 @@ struct vio_dev *vio_register_device_node(struct device_node *of_node) ...@@ -184,7 +184,7 @@ struct vio_dev *vio_register_device_node(struct device_node *of_node)
/* we need the 'device_type' property, in order to match with drivers */ /* we need the 'device_type' property, in order to match with drivers */
if (of_node->type == NULL) { if (of_node->type == NULL) {
printk(KERN_WARNING "%s: node %s missing 'device_type'\n", printk(KERN_WARNING "%s: node %s missing 'device_type'\n",
__FUNCTION__, __func__,
of_node->name ? of_node->name : "<unknown>"); of_node->name ? of_node->name : "<unknown>");
return NULL; return NULL;
} }
...@@ -192,7 +192,7 @@ struct vio_dev *vio_register_device_node(struct device_node *of_node) ...@@ -192,7 +192,7 @@ struct vio_dev *vio_register_device_node(struct device_node *of_node)
unit_address = of_get_property(of_node, "reg", NULL); unit_address = of_get_property(of_node, "reg", NULL);
if (unit_address == NULL) { if (unit_address == NULL) {
printk(KERN_WARNING "%s: node %s missing 'reg'\n", printk(KERN_WARNING "%s: node %s missing 'reg'\n",
__FUNCTION__, __func__,
of_node->name ? of_node->name : "<unknown>"); of_node->name ? of_node->name : "<unknown>");
return NULL; return NULL;
} }
...@@ -227,7 +227,7 @@ struct vio_dev *vio_register_device_node(struct device_node *of_node) ...@@ -227,7 +227,7 @@ struct vio_dev *vio_register_device_node(struct device_node *of_node)
/* register with generic device framework */ /* register with generic device framework */
if (device_register(&viodev->dev)) { if (device_register(&viodev->dev)) {
printk(KERN_ERR "%s: failed to register device %s\n", printk(KERN_ERR "%s: failed to register device %s\n",
__FUNCTION__, viodev->dev.bus_id); __func__, viodev->dev.bus_id);
/* XXX free TCE table */ /* XXX free TCE table */
kfree(viodev); kfree(viodev);
return NULL; return NULL;
...@@ -258,7 +258,7 @@ static int __init vio_bus_init(void) ...@@ -258,7 +258,7 @@ static int __init vio_bus_init(void)
err = device_register(&vio_bus_device.dev); err = device_register(&vio_bus_device.dev);
if (err) { if (err) {
printk(KERN_WARNING "%s: device_register returned %i\n", printk(KERN_WARNING "%s: device_register returned %i\n",
__FUNCTION__, err); __func__, err);
return err; return err;
} }
......
...@@ -9,7 +9,7 @@ fabs(u32 *frD, u32 *frB) ...@@ -9,7 +9,7 @@ fabs(u32 *frD, u32 *frB)
frD[1] = frB[1]; frD[1] = frB[1];
#ifdef DEBUG #ifdef DEBUG
printk("%s: D %p, B %p: ", __FUNCTION__, frD, frB); printk("%s: D %p, B %p: ", __func__, frD, frB);
dump_double(frD); dump_double(frD);
printk("\n"); printk("\n");
#endif #endif
......
...@@ -14,7 +14,7 @@ fadd(void *frD, void *frA, void *frB) ...@@ -14,7 +14,7 @@ fadd(void *frD, void *frA, void *frB)
int ret = 0; int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p\n", __FUNCTION__, frD, frA, frB); printk("%s: %p %p %p\n", __func__, frD, frA, frB);
#endif #endif
__FP_UNPACK_D(A, frA); __FP_UNPACK_D(A, frA);
......
...@@ -15,7 +15,7 @@ fadds(void *frD, void *frA, void *frB) ...@@ -15,7 +15,7 @@ fadds(void *frD, void *frA, void *frB)
int ret = 0; int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p\n", __FUNCTION__, frD, frA, frB); printk("%s: %p %p %p\n", __func__, frD, frA, frB);
#endif #endif
__FP_UNPACK_D(A, frA); __FP_UNPACK_D(A, frA);
......
...@@ -15,7 +15,7 @@ fcmpo(u32 *ccr, int crfD, void *frA, void *frB) ...@@ -15,7 +15,7 @@ fcmpo(u32 *ccr, int crfD, void *frA, void *frB)
int ret = 0; int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p (%08x) %d %p %p\n", __FUNCTION__, ccr, *ccr, crfD, frA, frB); printk("%s: %p (%08x) %d %p %p\n", __func__, ccr, *ccr, crfD, frA, frB);
#endif #endif
__FP_UNPACK_D(A, frA); __FP_UNPACK_D(A, frA);
......
...@@ -14,7 +14,7 @@ fcmpu(u32 *ccr, int crfD, void *frA, void *frB) ...@@ -14,7 +14,7 @@ fcmpu(u32 *ccr, int crfD, void *frA, void *frB)
long cmp; long cmp;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p (%08x) %d %p %p\n", __FUNCTION__, ccr, *ccr, crfD, frA, frB); printk("%s: %p (%08x) %d %p %p\n", __func__, ccr, *ccr, crfD, frA, frB);
#endif #endif
__FP_UNPACK_D(A, frA); __FP_UNPACK_D(A, frA);
......
...@@ -16,7 +16,7 @@ fctiw(u32 *frD, void *frB) ...@@ -16,7 +16,7 @@ fctiw(u32 *frD, void *frB)
frD[1] = r; frD[1] = r;
#ifdef DEBUG #ifdef DEBUG
printk("%s: D %p, B %p: ", __FUNCTION__, frD, frB); printk("%s: D %p, B %p: ", __func__, frD, frB);
dump_double(frD); dump_double(frD);
printk("\n"); printk("\n");
#endif #endif
......
...@@ -23,7 +23,7 @@ fctiwz(u32 *frD, void *frB) ...@@ -23,7 +23,7 @@ fctiwz(u32 *frD, void *frB)
__FPU_FPSCR = fpscr; __FPU_FPSCR = fpscr;
#ifdef DEBUG #ifdef DEBUG
printk("%s: D %p, B %p: ", __FUNCTION__, frD, frB); printk("%s: D %p, B %p: ", __func__, frD, frB);
dump_double(frD); dump_double(frD);
printk("\n"); printk("\n");
#endif #endif
......
...@@ -14,7 +14,7 @@ fdiv(void *frD, void *frA, void *frB) ...@@ -14,7 +14,7 @@ fdiv(void *frD, void *frA, void *frB)
int ret = 0; int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p\n", __FUNCTION__, frD, frA, frB); printk("%s: %p %p %p\n", __func__, frD, frA, frB);
#endif #endif
__FP_UNPACK_D(A, frA); __FP_UNPACK_D(A, frA);
...@@ -28,13 +28,13 @@ fdiv(void *frD, void *frA, void *frB) ...@@ -28,13 +28,13 @@ fdiv(void *frD, void *frA, void *frB)
if (A_c == FP_CLS_ZERO && B_c == FP_CLS_ZERO) { if (A_c == FP_CLS_ZERO && B_c == FP_CLS_ZERO) {
ret |= EFLAG_VXZDZ; ret |= EFLAG_VXZDZ;
#ifdef DEBUG #ifdef DEBUG
printk("%s: FPSCR_VXZDZ raised\n", __FUNCTION__); printk("%s: FPSCR_VXZDZ raised\n", __func__);
#endif #endif
} }
if (A_c == FP_CLS_INF && B_c == FP_CLS_INF) { if (A_c == FP_CLS_INF && B_c == FP_CLS_INF) {
ret |= EFLAG_VXIDI; ret |= EFLAG_VXIDI;
#ifdef DEBUG #ifdef DEBUG
printk("%s: FPSCR_VXIDI raised\n", __FUNCTION__); printk("%s: FPSCR_VXIDI raised\n", __func__);
#endif #endif
} }
......
...@@ -15,7 +15,7 @@ fdivs(void *frD, void *frA, void *frB) ...@@ -15,7 +15,7 @@ fdivs(void *frD, void *frA, void *frB)
int ret = 0; int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p\n", __FUNCTION__, frD, frA, frB); printk("%s: %p %p %p\n", __func__, frD, frA, frB);
#endif #endif
__FP_UNPACK_D(A, frA); __FP_UNPACK_D(A, frA);
...@@ -29,13 +29,13 @@ fdivs(void *frD, void *frA, void *frB) ...@@ -29,13 +29,13 @@ fdivs(void *frD, void *frA, void *frB)
if (A_c == FP_CLS_ZERO && B_c == FP_CLS_ZERO) { if (A_c == FP_CLS_ZERO && B_c == FP_CLS_ZERO) {
ret |= EFLAG_VXZDZ; ret |= EFLAG_VXZDZ;
#ifdef DEBUG #ifdef DEBUG
printk("%s: FPSCR_VXZDZ raised\n", __FUNCTION__); printk("%s: FPSCR_VXZDZ raised\n", __func__);
#endif #endif
} }
if (A_c == FP_CLS_INF && B_c == FP_CLS_INF) { if (A_c == FP_CLS_INF && B_c == FP_CLS_INF) {
ret |= EFLAG_VXIDI; ret |= EFLAG_VXIDI;
#ifdef DEBUG #ifdef DEBUG
printk("%s: FPSCR_VXIDI raised\n", __FUNCTION__); printk("%s: FPSCR_VXIDI raised\n", __func__);
#endif #endif
} }
......
...@@ -16,7 +16,7 @@ fmadd(void *frD, void *frA, void *frB, void *frC) ...@@ -16,7 +16,7 @@ fmadd(void *frD, void *frA, void *frB, void *frC)
int ret = 0; int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p %p\n", __FUNCTION__, frD, frA, frB, frC); printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC);
#endif #endif
__FP_UNPACK_D(A, frA); __FP_UNPACK_D(A, frA);
......
...@@ -17,7 +17,7 @@ fmadds(void *frD, void *frA, void *frB, void *frC) ...@@ -17,7 +17,7 @@ fmadds(void *frD, void *frA, void *frB, void *frC)
int ret = 0; int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p %p\n", __FUNCTION__, frD, frA, frB, frC); printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC);
#endif #endif
__FP_UNPACK_D(A, frA); __FP_UNPACK_D(A, frA);
......
...@@ -9,7 +9,7 @@ fmr(u32 *frD, u32 *frB) ...@@ -9,7 +9,7 @@ fmr(u32 *frD, u32 *frB)
frD[1] = frB[1]; frD[1] = frB[1];
#ifdef DEBUG #ifdef DEBUG
printk("%s: D %p, B %p: ", __FUNCTION__, frD, frB); printk("%s: D %p, B %p: ", __func__, frD, frB);
dump_double(frD); dump_double(frD);
printk("\n"); printk("\n");
#endif #endif
......
...@@ -16,7 +16,7 @@ fmsub(void *frD, void *frA, void *frB, void *frC) ...@@ -16,7 +16,7 @@ fmsub(void *frD, void *frA, void *frB, void *frC)
int ret = 0; int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p %p\n", __FUNCTION__, frD, frA, frB, frC); printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC);
#endif #endif
__FP_UNPACK_D(A, frA); __FP_UNPACK_D(A, frA);
......
...@@ -17,7 +17,7 @@ fmsubs(void *frD, void *frA, void *frB, void *frC) ...@@ -17,7 +17,7 @@ fmsubs(void *frD, void *frA, void *frB, void *frC)
int ret = 0; int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p %p\n", __FUNCTION__, frD, frA, frB, frC); printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC);
#endif #endif
__FP_UNPACK_D(A, frA); __FP_UNPACK_D(A, frA);
......
...@@ -14,7 +14,7 @@ fmul(void *frD, void *frA, void *frB) ...@@ -14,7 +14,7 @@ fmul(void *frD, void *frA, void *frB)
int ret = 0; int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p\n", __FUNCTION__, frD, frA, frB); printk("%s: %p %p %p\n", __func__, frD, frA, frB);
#endif #endif
__FP_UNPACK_D(A, frA); __FP_UNPACK_D(A, frA);
......
...@@ -15,7 +15,7 @@ fmuls(void *frD, void *frA, void *frB) ...@@ -15,7 +15,7 @@ fmuls(void *frD, void *frA, void *frB)
int ret = 0; int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p\n", __FUNCTION__, frD, frA, frB); printk("%s: %p %p %p\n", __func__, frD, frA, frB);
#endif #endif
__FP_UNPACK_D(A, frA); __FP_UNPACK_D(A, frA);
......
...@@ -9,7 +9,7 @@ fnabs(u32 *frD, u32 *frB) ...@@ -9,7 +9,7 @@ fnabs(u32 *frD, u32 *frB)
frD[1] = frB[1]; frD[1] = frB[1];
#ifdef DEBUG #ifdef DEBUG
printk("%s: D %p, B %p: ", __FUNCTION__, frD, frB); printk("%s: D %p, B %p: ", __func__, frD, frB);
dump_double(frD); dump_double(frD);
printk("\n"); printk("\n");
#endif #endif
......
...@@ -9,7 +9,7 @@ fneg(u32 *frD, u32 *frB) ...@@ -9,7 +9,7 @@ fneg(u32 *frD, u32 *frB)
frD[1] = frB[1]; frD[1] = frB[1];
#ifdef DEBUG #ifdef DEBUG
printk("%s: D %p, B %p: ", __FUNCTION__, frD, frB); printk("%s: D %p, B %p: ", __func__, frD, frB);
dump_double(frD); dump_double(frD);
printk("\n"); printk("\n");
#endif #endif
......
...@@ -16,7 +16,7 @@ fnmadd(void *frD, void *frA, void *frB, void *frC) ...@@ -16,7 +16,7 @@ fnmadd(void *frD, void *frA, void *frB, void *frC)
int ret = 0; int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p %p\n", __FUNCTION__, frD, frA, frB, frC); printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC);
#endif #endif
__FP_UNPACK_D(A, frA); __FP_UNPACK_D(A, frA);
......
...@@ -17,7 +17,7 @@ fnmadds(void *frD, void *frA, void *frB, void *frC) ...@@ -17,7 +17,7 @@ fnmadds(void *frD, void *frA, void *frB, void *frC)
int ret = 0; int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p %p\n", __FUNCTION__, frD, frA, frB, frC); printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC);
#endif #endif
__FP_UNPACK_D(A, frA); __FP_UNPACK_D(A, frA);
......
...@@ -16,7 +16,7 @@ fnmsub(void *frD, void *frA, void *frB, void *frC) ...@@ -16,7 +16,7 @@ fnmsub(void *frD, void *frA, void *frB, void *frC)
int ret = 0; int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p %p\n", __FUNCTION__, frD, frA, frB, frC); printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC);
#endif #endif
__FP_UNPACK_D(A, frA); __FP_UNPACK_D(A, frA);
......
...@@ -17,7 +17,7 @@ fnmsubs(void *frD, void *frA, void *frB, void *frC) ...@@ -17,7 +17,7 @@ fnmsubs(void *frD, void *frA, void *frB, void *frC)
int ret = 0; int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p %p\n", __FUNCTION__, frD, frA, frB, frC); printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC);
#endif #endif
__FP_UNPACK_D(A, frA); __FP_UNPACK_D(A, frA);
......
...@@ -6,7 +6,7 @@ int ...@@ -6,7 +6,7 @@ int
fres(void *frD, void *frB) fres(void *frD, void *frB)
{ {
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p\n", __FUNCTION__, frD, frB); printk("%s: %p %p\n", __func__, frD, frB);
#endif #endif
return -ENOSYS; return -ENOSYS;
} }
...@@ -12,7 +12,7 @@ frsp(void *frD, void *frB) ...@@ -12,7 +12,7 @@ frsp(void *frD, void *frB)
FP_DECL_D(B); FP_DECL_D(B);
#ifdef DEBUG #ifdef DEBUG
printk("%s: D %p, B %p\n", __FUNCTION__, frD, frB); printk("%s: D %p, B %p\n", __func__, frD, frB);
#endif #endif
__FP_UNPACK_D(B, frB); __FP_UNPACK_D(B, frB);
......
...@@ -6,7 +6,7 @@ int ...@@ -6,7 +6,7 @@ int
frsqrte(void *frD, void *frB) frsqrte(void *frD, void *frB)
{ {
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p\n", __FUNCTION__, frD, frB); printk("%s: %p %p\n", __func__, frD, frB);
#endif #endif
return 0; return 0;
} }
...@@ -11,7 +11,7 @@ fsel(u32 *frD, void *frA, u32 *frB, u32 *frC) ...@@ -11,7 +11,7 @@ fsel(u32 *frD, void *frA, u32 *frB, u32 *frC)
FP_DECL_D(A); FP_DECL_D(A);
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p %p\n", __FUNCTION__, frD, frA, frB, frC); printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC);
#endif #endif
__FP_UNPACK_D(A, frA); __FP_UNPACK_D(A, frA);
......
...@@ -13,7 +13,7 @@ fsqrt(void *frD, void *frB) ...@@ -13,7 +13,7 @@ fsqrt(void *frD, void *frB)
int ret = 0; int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p %p\n", __FUNCTION__, frD, frB); printk("%s: %p %p %p %p\n", __func__, frD, frB);
#endif #endif
__FP_UNPACK_D(B, frB); __FP_UNPACK_D(B, frB);
......
...@@ -14,7 +14,7 @@ fsqrts(void *frD, void *frB) ...@@ -14,7 +14,7 @@ fsqrts(void *frD, void *frB)
int ret = 0; int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p %p\n", __FUNCTION__, frD, frB); printk("%s: %p %p %p %p\n", __func__, frD, frB);
#endif #endif
__FP_UNPACK_D(B, frB); __FP_UNPACK_D(B, frB);
......
...@@ -14,7 +14,7 @@ fsub(void *frD, void *frA, void *frB) ...@@ -14,7 +14,7 @@ fsub(void *frD, void *frA, void *frB)
int ret = 0; int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p\n", __FUNCTION__, frD, frA, frB); printk("%s: %p %p %p\n", __func__, frD, frA, frB);
#endif #endif
__FP_UNPACK_D(A, frA); __FP_UNPACK_D(A, frA);
......
...@@ -15,7 +15,7 @@ fsubs(void *frD, void *frA, void *frB) ...@@ -15,7 +15,7 @@ fsubs(void *frD, void *frA, void *frB)
int ret = 0; int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p\n", __FUNCTION__, frD, frA, frB); printk("%s: %p %p %p\n", __func__, frD, frA, frB);
#endif #endif
__FP_UNPACK_D(A, frA); __FP_UNPACK_D(A, frA);
......
...@@ -11,7 +11,7 @@ lfd(void *frD, void *ea) ...@@ -11,7 +11,7 @@ lfd(void *frD, void *ea)
if (copy_from_user(frD, ea, sizeof(double))) if (copy_from_user(frD, ea, sizeof(double)))
return -EFAULT; return -EFAULT;
#ifdef DEBUG #ifdef DEBUG
printk("%s: D %p, ea %p: ", __FUNCTION__, frD, ea); printk("%s: D %p, ea %p: ", __func__, frD, ea);
dump_double(frD); dump_double(frD);
printk("\n"); printk("\n");
#endif #endif
......
...@@ -14,7 +14,7 @@ lfs(void *frD, void *ea) ...@@ -14,7 +14,7 @@ lfs(void *frD, void *ea)
float f; float f;
#ifdef DEBUG #ifdef DEBUG
printk("%s: D %p, ea %p\n", __FUNCTION__, frD, ea); printk("%s: D %p, ea %p\n", __func__, frD, ea);
#endif #endif
if (copy_from_user(&f, ea, sizeof(float))) if (copy_from_user(&f, ea, sizeof(float)))
......
...@@ -10,7 +10,7 @@ mcrfs(u32 *ccr, u32 crfD, u32 crfS) ...@@ -10,7 +10,7 @@ mcrfs(u32 *ccr, u32 crfD, u32 crfS)
u32 value, clear; u32 value, clear;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p (%08x) %d %d\n", __FUNCTION__, ccr, *ccr, crfD, crfS); printk("%s: %p (%08x) %d %d\n", __func__, ccr, *ccr, crfD, crfS);
#endif #endif
clear = 15 << ((7 - crfS) << 2); clear = 15 << ((7 - crfS) << 2);
...@@ -24,7 +24,7 @@ mcrfs(u32 *ccr, u32 crfD, u32 crfS) ...@@ -24,7 +24,7 @@ mcrfs(u32 *ccr, u32 crfD, u32 crfS)
*ccr |= (value << ((7 - crfD) << 2)); *ccr |= (value << ((7 - crfD) << 2));
#ifdef DEBUG #ifdef DEBUG
printk("CR: %08x\n", __FUNCTION__, *ccr); printk("CR: %08x\n", __func__, *ccr);
#endif #endif
return 0; return 0;
......
...@@ -10,7 +10,7 @@ mffs(u32 *frD) ...@@ -10,7 +10,7 @@ mffs(u32 *frD)
frD[1] = __FPU_FPSCR; frD[1] = __FPU_FPSCR;
#ifdef DEBUG #ifdef DEBUG
printk("%s: frD %p: %08x.%08x\n", __FUNCTION__, frD, frD[0], frD[1]); printk("%s: frD %p: %08x.%08x\n", __func__, frD, frD[0], frD[1]);
#endif #endif
return 0; return 0;
......
...@@ -11,7 +11,7 @@ mtfsb0(int crbD) ...@@ -11,7 +11,7 @@ mtfsb0(int crbD)
__FPU_FPSCR &= ~(1 << (31 - crbD)); __FPU_FPSCR &= ~(1 << (31 - crbD));
#ifdef DEBUG #ifdef DEBUG
printk("%s: %d %08lx\n", __FUNCTION__, crbD, __FPU_FPSCR); printk("%s: %d %08lx\n", __func__, crbD, __FPU_FPSCR);
#endif #endif
return 0; return 0;
......
...@@ -11,7 +11,7 @@ mtfsb1(int crbD) ...@@ -11,7 +11,7 @@ mtfsb1(int crbD)
__FPU_FPSCR |= (1 << (31 - crbD)); __FPU_FPSCR |= (1 << (31 - crbD));
#ifdef DEBUG #ifdef DEBUG
printk("%s: %d %08lx\n", __FUNCTION__, crbD, __FPU_FPSCR); printk("%s: %d %08lx\n", __func__, crbD, __FPU_FPSCR);
#endif #endif
return 0; return 0;
......
...@@ -38,7 +38,7 @@ mtfsf(unsigned int FM, u32 *frB) ...@@ -38,7 +38,7 @@ mtfsf(unsigned int FM, u32 *frB)
__FPU_FPSCR |= (frB[1] & mask); __FPU_FPSCR |= (frB[1] & mask);
#ifdef DEBUG #ifdef DEBUG
printk("%s: %02x %p: %08lx\n", __FUNCTION__, FM, frB, __FPU_FPSCR); printk("%s: %02x %p: %08lx\n", __func__, FM, frB, __FPU_FPSCR);
#endif #endif
return 0; return 0;
......
...@@ -16,7 +16,7 @@ mtfsfi(unsigned int crfD, unsigned int IMM) ...@@ -16,7 +16,7 @@ mtfsfi(unsigned int crfD, unsigned int IMM)
__FPU_FPSCR |= (IMM & 0xf) << ((7 - crfD) << 2); __FPU_FPSCR |= (IMM & 0xf) << ((7 - crfD) << 2);
#ifdef DEBUG #ifdef DEBUG
printk("%s: %d %x: %08lx\n", __FUNCTION__, crfD, IMM, __FPU_FPSCR); printk("%s: %d %x: %08lx\n", __func__, crfD, IMM, __FPU_FPSCR);
#endif #endif
return 0; return 0;
......
...@@ -7,7 +7,7 @@ stfd(void *frS, void *ea) ...@@ -7,7 +7,7 @@ stfd(void *frS, void *ea)
{ {
#if 0 #if 0
#ifdef DEBUG #ifdef DEBUG
printk("%s: S %p, ea %p: ", __FUNCTION__, frS, ea); printk("%s: S %p, ea %p: ", __func__, frS, ea);
dump_double(frS); dump_double(frS);
printk("\n"); printk("\n");
#endif #endif
......
...@@ -6,7 +6,7 @@ int ...@@ -6,7 +6,7 @@ int
stfiwx(u32 *frS, void *ea) stfiwx(u32 *frS, void *ea)
{ {
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p\n", __FUNCTION__, frS, ea); printk("%s: %p %p\n", __func__, frS, ea);
#endif #endif
if (copy_to_user(ea, &frS[1], sizeof(frS[1]))) if (copy_to_user(ea, &frS[1], sizeof(frS[1])))
......
...@@ -15,7 +15,7 @@ stfs(void *frS, void *ea) ...@@ -15,7 +15,7 @@ stfs(void *frS, void *ea)
int err; int err;
#ifdef DEBUG #ifdef DEBUG
printk("%s: S %p, ea %p\n", __FUNCTION__, frS, ea); printk("%s: S %p, ea %p\n", __func__, frS, ea);
#endif #endif
__FP_UNPACK_D(A, frS); __FP_UNPACK_D(A, frS);
......
...@@ -276,7 +276,7 @@ static int __init setup_kcore(void) ...@@ -276,7 +276,7 @@ static int __init setup_kcore(void)
kcore_mem = kmalloc(sizeof(struct kcore_list), GFP_ATOMIC); kcore_mem = kmalloc(sizeof(struct kcore_list), GFP_ATOMIC);
if (!kcore_mem) if (!kcore_mem)
panic("%s: kmalloc failed\n", __FUNCTION__); panic("%s: kmalloc failed\n", __func__);
/* must stay under 32 bits */ /* must stay under 32 bits */
if ( 0xfffffffful - (unsigned long)__va(base) < size) { if ( 0xfffffffful - (unsigned long)__va(base) < size) {
......
...@@ -122,7 +122,7 @@ static int __init setup_kcore(void) ...@@ -122,7 +122,7 @@ static int __init setup_kcore(void)
/* GFP_ATOMIC to avoid might_sleep warnings during boot */ /* GFP_ATOMIC to avoid might_sleep warnings during boot */
kcore_mem = kmalloc(sizeof(struct kcore_list), GFP_ATOMIC); kcore_mem = kmalloc(sizeof(struct kcore_list), GFP_ATOMIC);
if (!kcore_mem) if (!kcore_mem)
panic("%s: kmalloc failed\n", __FUNCTION__); panic("%s: kmalloc failed\n", __func__);
kclist_add(kcore_mem, __va(base), size); kclist_add(kcore_mem, __va(base), size);
} }
......
...@@ -68,7 +68,7 @@ static struct cached_info *get_cached_info(struct spu *the_spu, int spu_num) ...@@ -68,7 +68,7 @@ static struct cached_info *get_cached_info(struct spu *the_spu, int spu_num)
if (spu_num >= num_spu_nodes) { if (spu_num >= num_spu_nodes) {
printk(KERN_ERR "SPU_PROF: " printk(KERN_ERR "SPU_PROF: "
"%s, line %d: Invalid index %d into spu info cache\n", "%s, line %d: Invalid index %d into spu info cache\n",
__FUNCTION__, __LINE__, spu_num); __func__, __LINE__, spu_num);
ret_info = NULL; ret_info = NULL;
goto out; goto out;
} }
...@@ -115,7 +115,7 @@ prepare_cached_spu_info(struct spu *spu, unsigned long objectId) ...@@ -115,7 +115,7 @@ prepare_cached_spu_info(struct spu *spu, unsigned long objectId)
if (!info) { if (!info) {
printk(KERN_ERR "SPU_PROF: " printk(KERN_ERR "SPU_PROF: "
"%s, line %d: create vma_map failed\n", "%s, line %d: create vma_map failed\n",
__FUNCTION__, __LINE__); __func__, __LINE__);
retval = -ENOMEM; retval = -ENOMEM;
goto err_alloc; goto err_alloc;
} }
...@@ -123,7 +123,7 @@ prepare_cached_spu_info(struct spu *spu, unsigned long objectId) ...@@ -123,7 +123,7 @@ prepare_cached_spu_info(struct spu *spu, unsigned long objectId)
if (!new_map) { if (!new_map) {
printk(KERN_ERR "SPU_PROF: " printk(KERN_ERR "SPU_PROF: "
"%s, line %d: create vma_map failed\n", "%s, line %d: create vma_map failed\n",
__FUNCTION__, __LINE__); __func__, __LINE__);
retval = -ENOMEM; retval = -ENOMEM;
goto err_alloc; goto err_alloc;
} }
...@@ -171,7 +171,7 @@ static int release_cached_info(int spu_index) ...@@ -171,7 +171,7 @@ static int release_cached_info(int spu_index)
printk(KERN_ERR "SPU_PROF: " printk(KERN_ERR "SPU_PROF: "
"%s, line %d: " "%s, line %d: "
"Invalid index %d into spu info cache\n", "Invalid index %d into spu info cache\n",
__FUNCTION__, __LINE__, spu_index); __func__, __LINE__, spu_index);
goto out; goto out;
} }
end = spu_index + 1; end = spu_index + 1;
...@@ -273,7 +273,7 @@ get_exec_dcookie_and_offset(struct spu *spu, unsigned int *offsetp, ...@@ -273,7 +273,7 @@ get_exec_dcookie_and_offset(struct spu *spu, unsigned int *offsetp,
printk(KERN_ERR "SPU_PROF: " printk(KERN_ERR "SPU_PROF: "
"%s, line %d: Cannot find dcookie for SPU binary\n", "%s, line %d: Cannot find dcookie for SPU binary\n",
__FUNCTION__, __LINE__); __func__, __LINE__);
goto out; goto out;
} }
...@@ -467,7 +467,7 @@ int spu_sync_stop(void) ...@@ -467,7 +467,7 @@ int spu_sync_stop(void)
if (ret) { if (ret) {
printk(KERN_ERR "SPU_PROF: " printk(KERN_ERR "SPU_PROF: "
"%s, line %d: spu_switch_event_unregister returned %d\n", "%s, line %d: spu_switch_event_unregister returned %d\n",
__FUNCTION__, __LINE__, ret); __func__, __LINE__, ret);
goto out; goto out;
} }
......
...@@ -72,7 +72,7 @@ vma_map_add(struct vma_to_fileoffset_map *map, unsigned int vma, ...@@ -72,7 +72,7 @@ vma_map_add(struct vma_to_fileoffset_map *map, unsigned int vma,
kzalloc(sizeof(struct vma_to_fileoffset_map), GFP_KERNEL); kzalloc(sizeof(struct vma_to_fileoffset_map), GFP_KERNEL);
if (!new) { if (!new) {
printk(KERN_ERR "SPU_PROF: %s, line %d: malloc failed\n", printk(KERN_ERR "SPU_PROF: %s, line %d: malloc failed\n",
__FUNCTION__, __LINE__); __func__, __LINE__);
vma_map_free(map); vma_map_free(map);
return NULL; return NULL;
} }
...@@ -132,19 +132,19 @@ struct vma_to_fileoffset_map *create_vma_map(const struct spu *aSpu, ...@@ -132,19 +132,19 @@ struct vma_to_fileoffset_map *create_vma_map(const struct spu *aSpu,
if (memcmp(ehdr.e_ident, expected, EI_PAD) != 0) { if (memcmp(ehdr.e_ident, expected, EI_PAD) != 0) {
printk(KERN_ERR "SPU_PROF: " printk(KERN_ERR "SPU_PROF: "
"%s, line %d: Unexpected e_ident parsing SPU ELF\n", "%s, line %d: Unexpected e_ident parsing SPU ELF\n",
__FUNCTION__, __LINE__); __func__, __LINE__);
goto fail; goto fail;
} }
if (ehdr.e_machine != EM_SPU) { if (ehdr.e_machine != EM_SPU) {
printk(KERN_ERR "SPU_PROF: " printk(KERN_ERR "SPU_PROF: "
"%s, line %d: Unexpected e_machine parsing SPU ELF\n", "%s, line %d: Unexpected e_machine parsing SPU ELF\n",
__FUNCTION__, __LINE__); __func__, __LINE__);
goto fail; goto fail;
} }
if (ehdr.e_type != ET_EXEC) { if (ehdr.e_type != ET_EXEC) {
printk(KERN_ERR "SPU_PROF: " printk(KERN_ERR "SPU_PROF: "
"%s, line %d: Unexpected e_type parsing SPU ELF\n", "%s, line %d: Unexpected e_type parsing SPU ELF\n",
__FUNCTION__, __LINE__); __func__, __LINE__);
goto fail; goto fail;
} }
phdr_start = spu_elf_start + ehdr.e_phoff; phdr_start = spu_elf_start + ehdr.e_phoff;
...@@ -235,7 +235,7 @@ struct vma_to_fileoffset_map *create_vma_map(const struct spu *aSpu, ...@@ -235,7 +235,7 @@ struct vma_to_fileoffset_map *create_vma_map(const struct spu *aSpu,
if (overlay_tbl_offset < 0) { if (overlay_tbl_offset < 0) {
printk(KERN_ERR "SPU_PROF: " printk(KERN_ERR "SPU_PROF: "
"%s, line %d: Error finding SPU overlay table\n", "%s, line %d: Error finding SPU overlay table\n",
__FUNCTION__, __LINE__); __func__, __LINE__);
goto fail; goto fail;
} }
ovly_table = spu_elf_start + overlay_tbl_offset; ovly_table = spu_elf_start + overlay_tbl_offset;
......
...@@ -216,7 +216,7 @@ static void pm_rtas_reset_signals(u32 node) ...@@ -216,7 +216,7 @@ static void pm_rtas_reset_signals(u32 node)
* failure to stop OProfile. * failure to stop OProfile.
*/ */
printk(KERN_WARNING "%s: rtas returned: %d\n", printk(KERN_WARNING "%s: rtas returned: %d\n",
__FUNCTION__, ret); __func__, ret);
} }
static int pm_rtas_activate_signals(u32 node, u32 count) static int pm_rtas_activate_signals(u32 node, u32 count)
...@@ -255,7 +255,7 @@ static int pm_rtas_activate_signals(u32 node, u32 count) ...@@ -255,7 +255,7 @@ static int pm_rtas_activate_signals(u32 node, u32 count)
if (unlikely(ret)) { if (unlikely(ret)) {
printk(KERN_WARNING "%s: rtas returned: %d\n", printk(KERN_WARNING "%s: rtas returned: %d\n",
__FUNCTION__, ret); __func__, ret);
return -EIO; return -EIO;
} }
} }
...@@ -560,7 +560,7 @@ static int cell_reg_setup(struct op_counter_config *ctr, ...@@ -560,7 +560,7 @@ static int cell_reg_setup(struct op_counter_config *ctr,
if (unlikely(spu_rtas_token == RTAS_UNKNOWN_SERVICE)) { if (unlikely(spu_rtas_token == RTAS_UNKNOWN_SERVICE)) {
printk(KERN_ERR printk(KERN_ERR
"%s: rtas token ibm,cbe-spu-perftools unknown\n", "%s: rtas token ibm,cbe-spu-perftools unknown\n",
__FUNCTION__); __func__);
return -EIO; return -EIO;
} }
} }
...@@ -576,7 +576,7 @@ static int cell_reg_setup(struct op_counter_config *ctr, ...@@ -576,7 +576,7 @@ static int cell_reg_setup(struct op_counter_config *ctr,
if (unlikely(pm_rtas_token == RTAS_UNKNOWN_SERVICE)) { if (unlikely(pm_rtas_token == RTAS_UNKNOWN_SERVICE)) {
printk(KERN_ERR printk(KERN_ERR
"%s: rtas token ibm,cbe-perftools unknown\n", "%s: rtas token ibm,cbe-perftools unknown\n",
__FUNCTION__); __func__);
return -EIO; return -EIO;
} }
...@@ -853,7 +853,7 @@ static int pm_rtas_activate_spu_profiling(u32 node) ...@@ -853,7 +853,7 @@ static int pm_rtas_activate_spu_profiling(u32 node)
if (unlikely(ret)) { if (unlikely(ret)) {
printk(KERN_WARNING "%s: rtas returned: %d\n", printk(KERN_WARNING "%s: rtas returned: %d\n",
__FUNCTION__, ret); __func__, ret);
return -EIO; return -EIO;
} }
...@@ -949,7 +949,7 @@ static int cell_global_start_spu(struct op_counter_config *ctr) ...@@ -949,7 +949,7 @@ static int cell_global_start_spu(struct op_counter_config *ctr)
if (unlikely(ret != 0)) { if (unlikely(ret != 0)) {
printk(KERN_ERR printk(KERN_ERR
"%s: rtas call ibm,cbe-spu-perftools failed, return = %d\n", "%s: rtas call ibm,cbe-spu-perftools failed, return = %d\n",
__FUNCTION__, ret); __func__, ret);
rtas_error = -EIO; rtas_error = -EIO;
goto out; goto out;
} }
...@@ -1061,7 +1061,7 @@ static void cell_global_stop_spu(void) ...@@ -1061,7 +1061,7 @@ static void cell_global_stop_spu(void)
if (unlikely(rtn_value != 0)) { if (unlikely(rtn_value != 0)) {
printk(KERN_ERR printk(KERN_ERR
"%s: rtas call ibm,cbe-spu-perftools failed, return = %d\n", "%s: rtas call ibm,cbe-spu-perftools failed, return = %d\n",
__FUNCTION__, rtn_value); __func__, rtn_value);
} }
/* Deactivate the signals */ /* Deactivate the signals */
......
...@@ -63,7 +63,7 @@ lite5200_fix_clock_config(void) ...@@ -63,7 +63,7 @@ lite5200_fix_clock_config(void)
of_node_put(np); of_node_put(np);
if (!cdm) { if (!cdm) {
printk(KERN_ERR "%s() failed; expect abnormal behaviour\n", printk(KERN_ERR "%s() failed; expect abnormal behaviour\n",
__FUNCTION__); __func__);
return; return;
} }
...@@ -98,7 +98,7 @@ lite5200_fix_port_config(void) ...@@ -98,7 +98,7 @@ lite5200_fix_port_config(void)
of_node_put(np); of_node_put(np);
if (!gpio) { if (!gpio) {
printk(KERN_ERR "%s() failed. expect abnormal behavior\n", printk(KERN_ERR "%s() failed. expect abnormal behavior\n",
__FUNCTION__); __func__);
return; return;
} }
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#undef DEBUG #undef DEBUG
#ifdef DEBUG #ifdef DEBUG
#define DBG(fmt, args...) printk(KERN_ERR "%s: " fmt, __FUNCTION__, ## args) #define DBG(fmt, args...) printk(KERN_ERR "%s: " fmt, __func__, ## args)
#else #else
#define DBG(fmt, args...) #define DBG(fmt, args...)
#endif #endif
......
...@@ -316,7 +316,7 @@ static void cell_iommu_setup_stab(struct cbe_iommu *iommu, ...@@ -316,7 +316,7 @@ static void cell_iommu_setup_stab(struct cbe_iommu *iommu,
segments = max(dbase + dsize, fbase + fsize) >> IO_SEGMENT_SHIFT; segments = max(dbase + dsize, fbase + fsize) >> IO_SEGMENT_SHIFT;
pr_debug("%s: iommu[%d]: segments: %lu\n", pr_debug("%s: iommu[%d]: segments: %lu\n",
__FUNCTION__, iommu->nid, segments); __func__, iommu->nid, segments);
/* set up the segment table */ /* set up the segment table */
stab_size = segments * sizeof(unsigned long); stab_size = segments * sizeof(unsigned long);
...@@ -343,7 +343,7 @@ static unsigned long *cell_iommu_alloc_ptab(struct cbe_iommu *iommu, ...@@ -343,7 +343,7 @@ static unsigned long *cell_iommu_alloc_ptab(struct cbe_iommu *iommu,
(1 << 12) / sizeof(unsigned long)); (1 << 12) / sizeof(unsigned long));
ptab_size = segments * pages_per_segment * sizeof(unsigned long); ptab_size = segments * pages_per_segment * sizeof(unsigned long);
pr_debug("%s: iommu[%d]: ptab_size: %lu, order: %d\n", __FUNCTION__, pr_debug("%s: iommu[%d]: ptab_size: %lu, order: %d\n", __func__,
iommu->nid, ptab_size, get_order(ptab_size)); iommu->nid, ptab_size, get_order(ptab_size));
page = alloc_pages_node(iommu->nid, GFP_KERNEL, get_order(ptab_size)); page = alloc_pages_node(iommu->nid, GFP_KERNEL, get_order(ptab_size));
BUG_ON(!page); BUG_ON(!page);
...@@ -355,7 +355,7 @@ static unsigned long *cell_iommu_alloc_ptab(struct cbe_iommu *iommu, ...@@ -355,7 +355,7 @@ static unsigned long *cell_iommu_alloc_ptab(struct cbe_iommu *iommu,
n_pte_pages = (pages_per_segment * sizeof(unsigned long)) >> 12; n_pte_pages = (pages_per_segment * sizeof(unsigned long)) >> 12;
pr_debug("%s: iommu[%d]: stab at %p, ptab at %p, n_pte_pages: %lu\n", pr_debug("%s: iommu[%d]: stab at %p, ptab at %p, n_pte_pages: %lu\n",
__FUNCTION__, iommu->nid, iommu->stab, ptab, __func__, iommu->nid, iommu->stab, ptab,
n_pte_pages); n_pte_pages);
/* initialise the STEs */ /* initialise the STEs */
...@@ -394,7 +394,7 @@ static void cell_iommu_enable_hardware(struct cbe_iommu *iommu) ...@@ -394,7 +394,7 @@ static void cell_iommu_enable_hardware(struct cbe_iommu *iommu)
if (cell_iommu_find_ioc(iommu->nid, &xlate_base)) if (cell_iommu_find_ioc(iommu->nid, &xlate_base))
panic("%s: missing IOC register mappings for node %d\n", panic("%s: missing IOC register mappings for node %d\n",
__FUNCTION__, iommu->nid); __func__, iommu->nid);
iommu->xlate_regs = ioremap(xlate_base, IOC_Reg_Size); iommu->xlate_regs = ioremap(xlate_base, IOC_Reg_Size);
iommu->cmd_regs = iommu->xlate_regs + IOC_IOCmd_Offset; iommu->cmd_regs = iommu->xlate_regs + IOC_IOCmd_Offset;
......
...@@ -65,7 +65,7 @@ static void cbe_power_save(void) ...@@ -65,7 +65,7 @@ static void cbe_power_save(void)
break; break;
default: default:
printk(KERN_WARNING "%s: unknown configuration\n", printk(KERN_WARNING "%s: unknown configuration\n",
__FUNCTION__); __func__);
break; break;
} }
mtspr(SPRN_TSC_CELL, thread_switch_control); mtspr(SPRN_TSC_CELL, thread_switch_control);
......
...@@ -132,7 +132,7 @@ static int __init cbe_ptcal_enable_on_node(int nid, int order) ...@@ -132,7 +132,7 @@ static int __init cbe_ptcal_enable_on_node(int nid, int order)
(unsigned int)(addr >> 32), (unsigned int)(addr >> 32),
(unsigned int)(addr & 0xffffffff))) { (unsigned int)(addr & 0xffffffff))) {
printk(KERN_ERR "%s: error enabling PTCAL on node %d!\n", printk(KERN_ERR "%s: error enabling PTCAL on node %d!\n",
__FUNCTION__, nid); __func__, nid);
goto out_free_pages; goto out_free_pages;
} }
...@@ -162,7 +162,7 @@ static int __init cbe_ptcal_enable(void) ...@@ -162,7 +162,7 @@ static int __init cbe_ptcal_enable(void)
if (!size) if (!size)
return -ENODEV; return -ENODEV;
pr_debug("%s: enabling PTCAL, size = 0x%x\n", __FUNCTION__, *size); pr_debug("%s: enabling PTCAL, size = 0x%x\n", __func__, *size);
order = get_order(*size); order = get_order(*size);
of_node_put(np); of_node_put(np);
...@@ -180,7 +180,7 @@ static int __init cbe_ptcal_enable(void) ...@@ -180,7 +180,7 @@ static int __init cbe_ptcal_enable(void)
const u32 *nid = of_get_property(np, "node-id", NULL); const u32 *nid = of_get_property(np, "node-id", NULL);
if (!nid) { if (!nid) {
printk(KERN_ERR "%s: node %s is missing node-id?\n", printk(KERN_ERR "%s: node %s is missing node-id?\n",
__FUNCTION__, np->full_name); __func__, np->full_name);
continue; continue;
} }
cbe_ptcal_enable_on_node(*nid, order); cbe_ptcal_enable_on_node(*nid, order);
...@@ -195,13 +195,13 @@ static int cbe_ptcal_disable(void) ...@@ -195,13 +195,13 @@ static int cbe_ptcal_disable(void)
struct ptcal_area *area, *tmp; struct ptcal_area *area, *tmp;
int ret = 0; int ret = 0;
pr_debug("%s: disabling PTCAL\n", __FUNCTION__); pr_debug("%s: disabling PTCAL\n", __func__);
list_for_each_entry_safe(area, tmp, &ptcal_list, list) { list_for_each_entry_safe(area, tmp, &ptcal_list, list) {
/* disable ptcal on this node */ /* disable ptcal on this node */
if (rtas_call(ptcal_stop_tok, 1, 1, NULL, area->nid)) { if (rtas_call(ptcal_stop_tok, 1, 1, NULL, area->nid)) {
printk(KERN_ERR "%s: error disabling PTCAL " printk(KERN_ERR "%s: error disabling PTCAL "
"on node %d!\n", __FUNCTION__, "on node %d!\n", __func__,
area->nid); area->nid);
ret = -EIO; ret = -EIO;
continue; continue;
......
...@@ -165,7 +165,7 @@ static int __spu_trap_data_seg(struct spu *spu, unsigned long ea) ...@@ -165,7 +165,7 @@ static int __spu_trap_data_seg(struct spu *spu, unsigned long ea)
struct spu_slb slb; struct spu_slb slb;
int psize; int psize;
pr_debug("%s\n", __FUNCTION__); pr_debug("%s\n", __func__);
slb.esid = (ea & ESID_MASK) | SLB_ESID_V; slb.esid = (ea & ESID_MASK) | SLB_ESID_V;
...@@ -215,7 +215,7 @@ static int __spu_trap_data_seg(struct spu *spu, unsigned long ea) ...@@ -215,7 +215,7 @@ static int __spu_trap_data_seg(struct spu *spu, unsigned long ea)
extern int hash_page(unsigned long ea, unsigned long access, unsigned long trap); //XXX extern int hash_page(unsigned long ea, unsigned long access, unsigned long trap); //XXX
static int __spu_trap_data_map(struct spu *spu, unsigned long ea, u64 dsisr) static int __spu_trap_data_map(struct spu *spu, unsigned long ea, u64 dsisr)
{ {
pr_debug("%s, %lx, %lx\n", __FUNCTION__, dsisr, ea); pr_debug("%s, %lx, %lx\n", __func__, dsisr, ea);
/* Handle kernel space hash faults immediately. /* Handle kernel space hash faults immediately.
User hash faults need to be deferred to process context. */ User hash faults need to be deferred to process context. */
...@@ -351,7 +351,7 @@ spu_irq_class_1(int irq, void *data) ...@@ -351,7 +351,7 @@ spu_irq_class_1(int irq, void *data)
__spu_trap_data_seg(spu, dar); __spu_trap_data_seg(spu, dar);
spin_unlock(&spu->register_lock); spin_unlock(&spu->register_lock);
pr_debug("%s: %lx %lx %lx %lx\n", __FUNCTION__, mask, stat, pr_debug("%s: %lx %lx %lx %lx\n", __func__, mask, stat,
dar, dsisr); dar, dsisr);
if (stat & CLASS1_STORAGE_FAULT_INTR) if (stat & CLASS1_STORAGE_FAULT_INTR)
...@@ -726,7 +726,7 @@ static int __init init_spu_base(void) ...@@ -726,7 +726,7 @@ static int __init init_spu_base(void)
if (ret < 0) { if (ret < 0) {
printk(KERN_WARNING "%s: Error initializing spus\n", printk(KERN_WARNING "%s: Error initializing spus\n",
__FUNCTION__); __func__);
goto out_unregister_sysdev_class; goto out_unregister_sysdev_class;
} }
......
...@@ -54,7 +54,7 @@ long spu_sys_callback(struct spu_syscall_block *s) ...@@ -54,7 +54,7 @@ long spu_sys_callback(struct spu_syscall_block *s)
long (*syscall)(u64 a1, u64 a2, u64 a3, u64 a4, u64 a5, u64 a6); long (*syscall)(u64 a1, u64 a2, u64 a3, u64 a4, u64 a5, u64 a6);
if (s->nr_ret >= ARRAY_SIZE(spu_syscall_table)) { if (s->nr_ret >= ARRAY_SIZE(spu_syscall_table)) {
pr_debug("%s: invalid syscall #%ld", __FUNCTION__, s->nr_ret); pr_debug("%s: invalid syscall #%ld", __func__, s->nr_ret);
return -ENOSYS; return -ENOSYS;
} }
......
...@@ -92,7 +92,7 @@ static int __init spu_map_interrupts_old(struct spu *spu, ...@@ -92,7 +92,7 @@ static int __init spu_map_interrupts_old(struct spu *spu,
tmp = of_get_property(np->parent->parent, "node-id", NULL); tmp = of_get_property(np->parent->parent, "node-id", NULL);
if (!tmp) { if (!tmp) {
printk(KERN_WARNING "%s: can't find node-id\n", __FUNCTION__); printk(KERN_WARNING "%s: can't find node-id\n", __func__);
nid = spu->node; nid = spu->node;
} else } else
nid = tmp[0]; nid = tmp[0];
...@@ -296,7 +296,7 @@ static int __init of_enumerate_spus(int (*fn)(void *data)) ...@@ -296,7 +296,7 @@ static int __init of_enumerate_spus(int (*fn)(void *data))
ret = fn(node); ret = fn(node);
if (ret) { if (ret) {
printk(KERN_WARNING "%s: Error initializing %s\n", printk(KERN_WARNING "%s: Error initializing %s\n",
__FUNCTION__, node->name); __func__, node->name);
break; break;
} }
n++; n++;
...@@ -327,7 +327,7 @@ static int __init of_create_spu(struct spu *spu, void *data) ...@@ -327,7 +327,7 @@ static int __init of_create_spu(struct spu *spu, void *data)
if (!legacy_map) { if (!legacy_map) {
legacy_map = 1; legacy_map = 1;
printk(KERN_WARNING "%s: Legacy device tree found, " printk(KERN_WARNING "%s: Legacy device tree found, "
"trying to map old style\n", __FUNCTION__); "trying to map old style\n", __func__);
} }
ret = spu_map_device_old(spu); ret = spu_map_device_old(spu);
if (ret) { if (ret) {
...@@ -342,7 +342,7 @@ static int __init of_create_spu(struct spu *spu, void *data) ...@@ -342,7 +342,7 @@ static int __init of_create_spu(struct spu *spu, void *data)
if (!legacy_irq) { if (!legacy_irq) {
legacy_irq = 1; legacy_irq = 1;
printk(KERN_WARNING "%s: Legacy device tree found, " printk(KERN_WARNING "%s: Legacy device tree found, "
"trying old style irq\n", __FUNCTION__); "trying old style irq\n", __func__);
} }
ret = spu_map_interrupts_old(spu, spe); ret = spu_map_interrupts_old(spu, spe);
if (ret) { if (ret) {
......
...@@ -1556,7 +1556,7 @@ void spufs_mfc_callback(struct spu *spu) ...@@ -1556,7 +1556,7 @@ void spufs_mfc_callback(struct spu *spu)
wake_up_all(&ctx->mfc_wq); wake_up_all(&ctx->mfc_wq);
pr_debug("%s %s\n", __FUNCTION__, spu->name); pr_debug("%s %s\n", __func__, spu->name);
if (ctx->mfc_fasync) { if (ctx->mfc_fasync) {
u32 free_elements, tagstatus; u32 free_elements, tagstatus;
unsigned int mask; unsigned int mask;
...@@ -1790,7 +1790,7 @@ static unsigned int spufs_mfc_poll(struct file *file,poll_table *wait) ...@@ -1790,7 +1790,7 @@ static unsigned int spufs_mfc_poll(struct file *file,poll_table *wait)
if (tagstatus & ctx->tagwait) if (tagstatus & ctx->tagwait)
mask |= POLLIN | POLLRDNORM; mask |= POLLIN | POLLRDNORM;
pr_debug("%s: free %d tagstatus %d tagwait %d\n", __FUNCTION__, pr_debug("%s: free %d tagstatus %d tagwait %d\n", __func__,
free_elements, tagstatus, ctx->tagwait); free_elements, tagstatus, ctx->tagwait);
return mask; return mask;
......
...@@ -98,7 +98,7 @@ static int spu_setup_isolated(struct spu_context *ctx) ...@@ -98,7 +98,7 @@ static int spu_setup_isolated(struct spu_context *ctx)
!= MFC_CNTL_PURGE_DMA_COMPLETE) { != MFC_CNTL_PURGE_DMA_COMPLETE) {
if (time_after(jiffies, timeout)) { if (time_after(jiffies, timeout)) {
printk(KERN_ERR "%s: timeout flushing MFC DMA queue\n", printk(KERN_ERR "%s: timeout flushing MFC DMA queue\n",
__FUNCTION__); __func__);
ret = -EIO; ret = -EIO;
goto out; goto out;
} }
...@@ -124,7 +124,7 @@ static int spu_setup_isolated(struct spu_context *ctx) ...@@ -124,7 +124,7 @@ static int spu_setup_isolated(struct spu_context *ctx)
status_loading) { status_loading) {
if (time_after(jiffies, timeout)) { if (time_after(jiffies, timeout)) {
printk(KERN_ERR "%s: timeout waiting for loader\n", printk(KERN_ERR "%s: timeout waiting for loader\n",
__FUNCTION__); __func__);
ret = -EIO; ret = -EIO;
goto out_drop_priv; goto out_drop_priv;
} }
...@@ -134,7 +134,7 @@ static int spu_setup_isolated(struct spu_context *ctx) ...@@ -134,7 +134,7 @@ static int spu_setup_isolated(struct spu_context *ctx)
if (!(status & SPU_STATUS_RUNNING)) { if (!(status & SPU_STATUS_RUNNING)) {
/* If isolated LOAD has failed: run SPU, we will get a stop-and /* If isolated LOAD has failed: run SPU, we will get a stop-and
* signal later. */ * signal later. */
pr_debug("%s: isolated LOAD failed\n", __FUNCTION__); pr_debug("%s: isolated LOAD failed\n", __func__);
ctx->ops->runcntl_write(ctx, SPU_RUNCNTL_RUNNABLE); ctx->ops->runcntl_write(ctx, SPU_RUNCNTL_RUNNABLE);
ret = -EACCES; ret = -EACCES;
goto out_drop_priv; goto out_drop_priv;
...@@ -142,7 +142,7 @@ static int spu_setup_isolated(struct spu_context *ctx) ...@@ -142,7 +142,7 @@ static int spu_setup_isolated(struct spu_context *ctx)
if (!(status & SPU_STATUS_ISOLATED_STATE)) { if (!(status & SPU_STATUS_ISOLATED_STATE)) {
/* This isn't allowed by the CBEA, but check anyway */ /* This isn't allowed by the CBEA, but check anyway */
pr_debug("%s: SPU fell out of isolated mode?\n", __FUNCTION__); pr_debug("%s: SPU fell out of isolated mode?\n", __func__);
ctx->ops->runcntl_write(ctx, SPU_RUNCNTL_STOP); ctx->ops->runcntl_write(ctx, SPU_RUNCNTL_STOP);
ret = -EINVAL; ret = -EINVAL;
goto out_drop_priv; goto out_drop_priv;
...@@ -282,7 +282,7 @@ static int spu_handle_restartsys(struct spu_context *ctx, long *spu_ret, ...@@ -282,7 +282,7 @@ static int spu_handle_restartsys(struct spu_context *ctx, long *spu_ret,
break; break;
default: default:
printk(KERN_WARNING "%s: unexpected return code %ld\n", printk(KERN_WARNING "%s: unexpected return code %ld\n",
__FUNCTION__, *spu_ret); __func__, *spu_ret);
ret = 0; ret = 0;
} }
return ret; return ret;
......
...@@ -117,11 +117,11 @@ static void __init mpc7448_hpc2_init_IRQ(void) ...@@ -117,11 +117,11 @@ static void __init mpc7448_hpc2_init_IRQ(void)
} }
if (mpic_paddr == 0) { if (mpic_paddr == 0) {
printk("%s: No tsi108 PIC found !\n", __FUNCTION__); printk("%s: No tsi108 PIC found !\n", __func__);
return; return;
} }
DBG("%s: tsi108 pic phys_addr = 0x%x\n", __FUNCTION__, DBG("%s: tsi108 pic phys_addr = 0x%x\n", __func__,
(u32) mpic_paddr); (u32) mpic_paddr);
mpic = mpic_alloc(tsi_pic, mpic_paddr, mpic = mpic_alloc(tsi_pic, mpic_paddr,
...@@ -140,17 +140,17 @@ static void __init mpc7448_hpc2_init_IRQ(void) ...@@ -140,17 +140,17 @@ static void __init mpc7448_hpc2_init_IRQ(void)
#ifdef CONFIG_PCI #ifdef CONFIG_PCI
tsi_pci = of_find_node_by_type(NULL, "pci"); tsi_pci = of_find_node_by_type(NULL, "pci");
if (tsi_pci == NULL) { if (tsi_pci == NULL) {
printk("%s: No tsi108 pci node found !\n", __FUNCTION__); printk("%s: No tsi108 pci node found !\n", __func__);
return; return;
} }
cascade_node = of_find_node_by_type(NULL, "pic-router"); cascade_node = of_find_node_by_type(NULL, "pic-router");
if (cascade_node == NULL) { if (cascade_node == NULL) {
printk("%s: No tsi108 pci cascade node found !\n", __FUNCTION__); printk("%s: No tsi108 pci cascade node found !\n", __func__);
return; return;
} }
cascade_pci_irq = irq_of_parse_and_map(tsi_pci, 0); cascade_pci_irq = irq_of_parse_and_map(tsi_pci, 0);
DBG("%s: tsi108 cascade_pci_irq = 0x%x\n", __FUNCTION__, DBG("%s: tsi108 cascade_pci_irq = 0x%x\n", __func__,
(u32) cascade_pci_irq); (u32) cascade_pci_irq);
tsi108_pci_int_init(cascade_node); tsi108_pci_int_init(cascade_node);
set_irq_data(cascade_pci_irq, mpic); set_irq_data(cascade_pci_irq, mpic);
......
...@@ -126,7 +126,7 @@ static void __init prealloc(struct ps3_prealloc *p) ...@@ -126,7 +126,7 @@ static void __init prealloc(struct ps3_prealloc *p)
p->address = __alloc_bootmem(p->size, p->align, __pa(MAX_DMA_ADDRESS)); p->address = __alloc_bootmem(p->size, p->align, __pa(MAX_DMA_ADDRESS));
if (!p->address) { if (!p->address) {
printk(KERN_ERR "%s: Cannot allocate %s\n", __FUNCTION__, printk(KERN_ERR "%s: Cannot allocate %s\n", __func__,
p->name); p->name);
return; return;
} }
......
...@@ -123,7 +123,7 @@ pcibios_pci_config_bridge(struct pci_dev *dev) ...@@ -123,7 +123,7 @@ pcibios_pci_config_bridge(struct pci_dev *dev)
/* Add to children of PCI bridge dev->bus */ /* Add to children of PCI bridge dev->bus */
child_bus = pci_add_new_bus(dev->bus, dev, sec_busno); child_bus = pci_add_new_bus(dev->bus, dev, sec_busno);
if (!child_bus) { if (!child_bus) {
printk (KERN_ERR "%s: could not add second bus\n", __FUNCTION__); printk (KERN_ERR "%s: could not add second bus\n", __func__);
return -EIO; return -EIO;
} }
sprintf(child_bus->name, "PCI Bus #%02x", child_bus->number); sprintf(child_bus->name, "PCI Bus #%02x", child_bus->number);
......
...@@ -222,14 +222,14 @@ static char * parse_next_property(char *buf, char *end, char **name, int *length ...@@ -222,14 +222,14 @@ static char * parse_next_property(char *buf, char *end, char **name, int *length
tmp = strchr(buf, ' '); tmp = strchr(buf, ' ');
if (!tmp) { if (!tmp) {
printk(KERN_ERR "property parse failed in %s at line %d\n", printk(KERN_ERR "property parse failed in %s at line %d\n",
__FUNCTION__, __LINE__); __func__, __LINE__);
return NULL; return NULL;
} }
*tmp = '\0'; *tmp = '\0';
if (++tmp >= end) { if (++tmp >= end) {
printk(KERN_ERR "property parse failed in %s at line %d\n", printk(KERN_ERR "property parse failed in %s at line %d\n",
__FUNCTION__, __LINE__); __func__, __LINE__);
return NULL; return NULL;
} }
...@@ -238,12 +238,12 @@ static char * parse_next_property(char *buf, char *end, char **name, int *length ...@@ -238,12 +238,12 @@ static char * parse_next_property(char *buf, char *end, char **name, int *length
*length = simple_strtoul(tmp, &tmp, 10); *length = simple_strtoul(tmp, &tmp, 10);
if (*length == -1) { if (*length == -1) {
printk(KERN_ERR "property parse failed in %s at line %d\n", printk(KERN_ERR "property parse failed in %s at line %d\n",
__FUNCTION__, __LINE__); __func__, __LINE__);
return NULL; return NULL;
} }
if (*tmp != ' ' || ++tmp >= end) { if (*tmp != ' ' || ++tmp >= end) {
printk(KERN_ERR "property parse failed in %s at line %d\n", printk(KERN_ERR "property parse failed in %s at line %d\n",
__FUNCTION__, __LINE__); __func__, __LINE__);
return NULL; return NULL;
} }
...@@ -252,12 +252,12 @@ static char * parse_next_property(char *buf, char *end, char **name, int *length ...@@ -252,12 +252,12 @@ static char * parse_next_property(char *buf, char *end, char **name, int *length
tmp += *length; tmp += *length;
if (tmp > end) { if (tmp > end) {
printk(KERN_ERR "property parse failed in %s at line %d\n", printk(KERN_ERR "property parse failed in %s at line %d\n",
__FUNCTION__, __LINE__); __func__, __LINE__);
return NULL; return NULL;
} }
else if (tmp < end && *tmp != ' ' && *tmp != '\0') { else if (tmp < end && *tmp != ' ' && *tmp != '\0') {
printk(KERN_ERR "property parse failed in %s at line %d\n", printk(KERN_ERR "property parse failed in %s at line %d\n",
__FUNCTION__, __LINE__); __func__, __LINE__);
return NULL; return NULL;
} }
tmp++; tmp++;
......
...@@ -257,7 +257,7 @@ int cpm_command(u32 command, u8 opcode) ...@@ -257,7 +257,7 @@ int cpm_command(u32 command, u8 opcode)
if ((in_be16(&cpmp->cp_cpcr) & CPM_CR_FLG) == 0) if ((in_be16(&cpmp->cp_cpcr) & CPM_CR_FLG) == 0)
goto out; goto out;
printk(KERN_ERR "%s(): Not able to issue CPM command\n", __FUNCTION__); printk(KERN_ERR "%s(): Not able to issue CPM command\n", __func__);
ret = -EIO; ret = -EIO;
out: out:
spin_unlock_irqrestore(&cmd_lock, flags); spin_unlock_irqrestore(&cmd_lock, flags);
......
...@@ -99,7 +99,7 @@ int cpm_command(u32 command, u8 opcode) ...@@ -99,7 +99,7 @@ int cpm_command(u32 command, u8 opcode)
if ((in_be32(&cpmp->cp_cpcr) & CPM_CR_FLG) == 0) if ((in_be32(&cpmp->cp_cpcr) & CPM_CR_FLG) == 0)
goto out; goto out;
printk(KERN_ERR "%s(): Not able to issue CPM command\n", __FUNCTION__); printk(KERN_ERR "%s(): Not able to issue CPM command\n", __func__);
ret = -EIO; ret = -EIO;
out: out:
spin_unlock_irqrestore(&cmd_lock, flags); spin_unlock_irqrestore(&cmd_lock, flags);
......
...@@ -200,7 +200,7 @@ static void dump_par_io(void) ...@@ -200,7 +200,7 @@ static void dump_par_io(void)
{ {
unsigned int i; unsigned int i;
printk(KERN_INFO "%s: par_io=%p\n", __FUNCTION__, par_io); printk(KERN_INFO "%s: par_io=%p\n", __func__, par_io);
for (i = 0; i < num_par_io_ports; i++) { for (i = 0; i < num_par_io_ports; i++) {
printk(KERN_INFO " cpodr[%u]=%08x\n", i, printk(KERN_INFO " cpodr[%u]=%08x\n", i,
in_be32(&par_io[i].cpodr)); in_be32(&par_io[i].cpodr));
......
...@@ -148,57 +148,57 @@ int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** ucc ...@@ -148,57 +148,57 @@ int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** ucc
/* check if the UCC port number is in range. */ /* check if the UCC port number is in range. */
if ((uf_info->ucc_num < 0) || (uf_info->ucc_num > UCC_MAX_NUM - 1)) { if ((uf_info->ucc_num < 0) || (uf_info->ucc_num > UCC_MAX_NUM - 1)) {
printk(KERN_ERR "%s: illegal UCC number\n", __FUNCTION__); printk(KERN_ERR "%s: illegal UCC number\n", __func__);
return -EINVAL; return -EINVAL;
} }
/* Check that 'max_rx_buf_length' is properly aligned (4). */ /* Check that 'max_rx_buf_length' is properly aligned (4). */
if (uf_info->max_rx_buf_length & (UCC_FAST_MRBLR_ALIGNMENT - 1)) { if (uf_info->max_rx_buf_length & (UCC_FAST_MRBLR_ALIGNMENT - 1)) {
printk(KERN_ERR "%s: max_rx_buf_length not aligned\n", printk(KERN_ERR "%s: max_rx_buf_length not aligned\n",
__FUNCTION__); __func__);
return -EINVAL; return -EINVAL;
} }
/* Validate Virtual Fifo register values */ /* Validate Virtual Fifo register values */
if (uf_info->urfs < UCC_FAST_URFS_MIN_VAL) { if (uf_info->urfs < UCC_FAST_URFS_MIN_VAL) {
printk(KERN_ERR "%s: urfs is too small\n", __FUNCTION__); printk(KERN_ERR "%s: urfs is too small\n", __func__);
return -EINVAL; return -EINVAL;
} }
if (uf_info->urfs & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) { if (uf_info->urfs & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) {
printk(KERN_ERR "%s: urfs is not aligned\n", __FUNCTION__); printk(KERN_ERR "%s: urfs is not aligned\n", __func__);
return -EINVAL; return -EINVAL;
} }
if (uf_info->urfet & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) { if (uf_info->urfet & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) {
printk(KERN_ERR "%s: urfet is not aligned.\n", __FUNCTION__); printk(KERN_ERR "%s: urfet is not aligned.\n", __func__);
return -EINVAL; return -EINVAL;
} }
if (uf_info->urfset & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) { if (uf_info->urfset & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) {
printk(KERN_ERR "%s: urfset is not aligned\n", __FUNCTION__); printk(KERN_ERR "%s: urfset is not aligned\n", __func__);
return -EINVAL; return -EINVAL;
} }
if (uf_info->utfs & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) { if (uf_info->utfs & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) {
printk(KERN_ERR "%s: utfs is not aligned\n", __FUNCTION__); printk(KERN_ERR "%s: utfs is not aligned\n", __func__);
return -EINVAL; return -EINVAL;
} }
if (uf_info->utfet & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) { if (uf_info->utfet & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) {
printk(KERN_ERR "%s: utfet is not aligned\n", __FUNCTION__); printk(KERN_ERR "%s: utfet is not aligned\n", __func__);
return -EINVAL; return -EINVAL;
} }
if (uf_info->utftt & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) { if (uf_info->utftt & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) {
printk(KERN_ERR "%s: utftt is not aligned\n", __FUNCTION__); printk(KERN_ERR "%s: utftt is not aligned\n", __func__);
return -EINVAL; return -EINVAL;
} }
uccf = kzalloc(sizeof(struct ucc_fast_private), GFP_KERNEL); uccf = kzalloc(sizeof(struct ucc_fast_private), GFP_KERNEL);
if (!uccf) { if (!uccf) {
printk(KERN_ERR "%s: Cannot allocate private data\n", printk(KERN_ERR "%s: Cannot allocate private data\n",
__FUNCTION__); __func__);
return -ENOMEM; return -ENOMEM;
} }
...@@ -207,7 +207,7 @@ int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** ucc ...@@ -207,7 +207,7 @@ int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** ucc
/* Set the PHY base address */ /* Set the PHY base address */
uccf->uf_regs = ioremap(uf_info->regs, sizeof(struct ucc_fast)); uccf->uf_regs = ioremap(uf_info->regs, sizeof(struct ucc_fast));
if (uccf->uf_regs == NULL) { if (uccf->uf_regs == NULL) {
printk(KERN_ERR "%s: Cannot map UCC registers\n", __FUNCTION__); printk(KERN_ERR "%s: Cannot map UCC registers\n", __func__);
return -ENOMEM; return -ENOMEM;
} }
...@@ -230,7 +230,7 @@ int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** ucc ...@@ -230,7 +230,7 @@ int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** ucc
/* Set UCC to fast type */ /* Set UCC to fast type */
ret = ucc_set_type(uf_info->ucc_num, UCC_SPEED_TYPE_FAST); ret = ucc_set_type(uf_info->ucc_num, UCC_SPEED_TYPE_FAST);
if (ret) { if (ret) {
printk(KERN_ERR "%s: cannot set UCC type\n", __FUNCTION__); printk(KERN_ERR "%s: cannot set UCC type\n", __func__);
ucc_fast_free(uccf); ucc_fast_free(uccf);
return ret; return ret;
} }
...@@ -270,7 +270,7 @@ int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** ucc ...@@ -270,7 +270,7 @@ int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** ucc
qe_muram_alloc(uf_info->utfs, UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT); qe_muram_alloc(uf_info->utfs, UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT);
if (IS_ERR_VALUE(uccf->ucc_fast_tx_virtual_fifo_base_offset)) { if (IS_ERR_VALUE(uccf->ucc_fast_tx_virtual_fifo_base_offset)) {
printk(KERN_ERR "%s: cannot allocate MURAM for TX FIFO\n", printk(KERN_ERR "%s: cannot allocate MURAM for TX FIFO\n",
__FUNCTION__); __func__);
uccf->ucc_fast_tx_virtual_fifo_base_offset = 0; uccf->ucc_fast_tx_virtual_fifo_base_offset = 0;
ucc_fast_free(uccf); ucc_fast_free(uccf);
return -ENOMEM; return -ENOMEM;
...@@ -283,7 +283,7 @@ int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** ucc ...@@ -283,7 +283,7 @@ int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** ucc
UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT); UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT);
if (IS_ERR_VALUE(uccf->ucc_fast_rx_virtual_fifo_base_offset)) { if (IS_ERR_VALUE(uccf->ucc_fast_rx_virtual_fifo_base_offset)) {
printk(KERN_ERR "%s: cannot allocate MURAM for RX FIFO\n", printk(KERN_ERR "%s: cannot allocate MURAM for RX FIFO\n",
__FUNCTION__); __func__);
uccf->ucc_fast_rx_virtual_fifo_base_offset = 0; uccf->ucc_fast_rx_virtual_fifo_base_offset = 0;
ucc_fast_free(uccf); ucc_fast_free(uccf);
return -ENOMEM; return -ENOMEM;
...@@ -314,7 +314,7 @@ int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** ucc ...@@ -314,7 +314,7 @@ int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** ucc
ucc_set_qe_mux_rxtx(uf_info->ucc_num, uf_info->rx_clock, ucc_set_qe_mux_rxtx(uf_info->ucc_num, uf_info->rx_clock,
COMM_DIR_RX)) { COMM_DIR_RX)) {
printk(KERN_ERR "%s: illegal value for RX clock\n", printk(KERN_ERR "%s: illegal value for RX clock\n",
__FUNCTION__); __func__);
ucc_fast_free(uccf); ucc_fast_free(uccf);
return -EINVAL; return -EINVAL;
} }
...@@ -323,7 +323,7 @@ int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** ucc ...@@ -323,7 +323,7 @@ int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** ucc
ucc_set_qe_mux_rxtx(uf_info->ucc_num, uf_info->tx_clock, ucc_set_qe_mux_rxtx(uf_info->ucc_num, uf_info->tx_clock,
COMM_DIR_TX)) { COMM_DIR_TX)) {
printk(KERN_ERR "%s: illegal value for TX clock\n", printk(KERN_ERR "%s: illegal value for TX clock\n",
__FUNCTION__); __func__);
ucc_fast_free(uccf); ucc_fast_free(uccf);
return -EINVAL; return -EINVAL;
} }
......
...@@ -142,7 +142,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc ...@@ -142,7 +142,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc
/* check if the UCC port number is in range. */ /* check if the UCC port number is in range. */
if ((us_info->ucc_num < 0) || (us_info->ucc_num > UCC_MAX_NUM - 1)) { if ((us_info->ucc_num < 0) || (us_info->ucc_num > UCC_MAX_NUM - 1)) {
printk(KERN_ERR "%s: illegal UCC number\n", __FUNCTION__); printk(KERN_ERR "%s: illegal UCC number\n", __func__);
return -EINVAL; return -EINVAL;
} }
...@@ -161,7 +161,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc ...@@ -161,7 +161,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc
uccs = kzalloc(sizeof(struct ucc_slow_private), GFP_KERNEL); uccs = kzalloc(sizeof(struct ucc_slow_private), GFP_KERNEL);
if (!uccs) { if (!uccs) {
printk(KERN_ERR "%s: Cannot allocate private data\n", printk(KERN_ERR "%s: Cannot allocate private data\n",
__FUNCTION__); __func__);
return -ENOMEM; return -ENOMEM;
} }
...@@ -170,7 +170,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc ...@@ -170,7 +170,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc
/* Set the PHY base address */ /* Set the PHY base address */
uccs->us_regs = ioremap(us_info->regs, sizeof(struct ucc_slow)); uccs->us_regs = ioremap(us_info->regs, sizeof(struct ucc_slow));
if (uccs->us_regs == NULL) { if (uccs->us_regs == NULL) {
printk(KERN_ERR "%s: Cannot map UCC registers\n", __FUNCTION__); printk(KERN_ERR "%s: Cannot map UCC registers\n", __func__);
return -ENOMEM; return -ENOMEM;
} }
...@@ -189,7 +189,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc ...@@ -189,7 +189,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc
uccs->us_pram_offset = uccs->us_pram_offset =
qe_muram_alloc(UCC_SLOW_PRAM_SIZE, ALIGNMENT_OF_UCC_SLOW_PRAM); qe_muram_alloc(UCC_SLOW_PRAM_SIZE, ALIGNMENT_OF_UCC_SLOW_PRAM);
if (IS_ERR_VALUE(uccs->us_pram_offset)) { if (IS_ERR_VALUE(uccs->us_pram_offset)) {
printk(KERN_ERR "%s: cannot allocate MURAM for PRAM", __FUNCTION__); printk(KERN_ERR "%s: cannot allocate MURAM for PRAM", __func__);
ucc_slow_free(uccs); ucc_slow_free(uccs);
return -ENOMEM; return -ENOMEM;
} }
...@@ -202,7 +202,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc ...@@ -202,7 +202,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc
/* Set UCC to slow type */ /* Set UCC to slow type */
ret = ucc_set_type(us_info->ucc_num, UCC_SPEED_TYPE_SLOW); ret = ucc_set_type(us_info->ucc_num, UCC_SPEED_TYPE_SLOW);
if (ret) { if (ret) {
printk(KERN_ERR "%s: cannot set UCC type", __FUNCTION__); printk(KERN_ERR "%s: cannot set UCC type", __func__);
ucc_slow_free(uccs); ucc_slow_free(uccs);
return ret; return ret;
} }
...@@ -216,7 +216,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc ...@@ -216,7 +216,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc
qe_muram_alloc(us_info->rx_bd_ring_len * sizeof(struct qe_bd), qe_muram_alloc(us_info->rx_bd_ring_len * sizeof(struct qe_bd),
QE_ALIGNMENT_OF_BD); QE_ALIGNMENT_OF_BD);
if (IS_ERR_VALUE(uccs->rx_base_offset)) { if (IS_ERR_VALUE(uccs->rx_base_offset)) {
printk(KERN_ERR "%s: cannot allocate %u RX BDs\n", __FUNCTION__, printk(KERN_ERR "%s: cannot allocate %u RX BDs\n", __func__,
us_info->rx_bd_ring_len); us_info->rx_bd_ring_len);
uccs->rx_base_offset = 0; uccs->rx_base_offset = 0;
ucc_slow_free(uccs); ucc_slow_free(uccs);
...@@ -227,7 +227,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc ...@@ -227,7 +227,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc
qe_muram_alloc(us_info->tx_bd_ring_len * sizeof(struct qe_bd), qe_muram_alloc(us_info->tx_bd_ring_len * sizeof(struct qe_bd),
QE_ALIGNMENT_OF_BD); QE_ALIGNMENT_OF_BD);
if (IS_ERR_VALUE(uccs->tx_base_offset)) { if (IS_ERR_VALUE(uccs->tx_base_offset)) {
printk(KERN_ERR "%s: cannot allocate TX BDs", __FUNCTION__); printk(KERN_ERR "%s: cannot allocate TX BDs", __func__);
uccs->tx_base_offset = 0; uccs->tx_base_offset = 0;
ucc_slow_free(uccs); ucc_slow_free(uccs);
return -ENOMEM; return -ENOMEM;
...@@ -317,7 +317,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc ...@@ -317,7 +317,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc
if (ucc_set_qe_mux_rxtx(us_info->ucc_num, us_info->rx_clock, if (ucc_set_qe_mux_rxtx(us_info->ucc_num, us_info->rx_clock,
COMM_DIR_RX)) { COMM_DIR_RX)) {
printk(KERN_ERR "%s: illegal value for RX clock\n", printk(KERN_ERR "%s: illegal value for RX clock\n",
__FUNCTION__); __func__);
ucc_slow_free(uccs); ucc_slow_free(uccs);
return -EINVAL; return -EINVAL;
} }
...@@ -325,7 +325,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc ...@@ -325,7 +325,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc
if (ucc_set_qe_mux_rxtx(us_info->ucc_num, us_info->tx_clock, if (ucc_set_qe_mux_rxtx(us_info->ucc_num, us_info->tx_clock,
COMM_DIR_TX)) { COMM_DIR_TX)) {
printk(KERN_ERR "%s: illegal value for TX clock\n", printk(KERN_ERR "%s: illegal value for TX clock\n",
__FUNCTION__); __func__);
ucc_slow_free(uccs); ucc_slow_free(uccs);
return -EINVAL; return -EINVAL;
} }
......
...@@ -84,7 +84,7 @@ static int __init tsi108_eth_of_init(void) ...@@ -84,7 +84,7 @@ static int __init tsi108_eth_of_init(void)
ret = of_address_to_resource(np, 0, &r[0]); ret = of_address_to_resource(np, 0, &r[0]);
DBG("%s: name:start->end = %s:0x%lx-> 0x%lx\n", DBG("%s: name:start->end = %s:0x%lx-> 0x%lx\n",
__FUNCTION__,r[0].name, r[0].start, r[0].end); __func__,r[0].name, r[0].start, r[0].end);
if (ret) if (ret)
goto err; goto err;
...@@ -93,7 +93,7 @@ static int __init tsi108_eth_of_init(void) ...@@ -93,7 +93,7 @@ static int __init tsi108_eth_of_init(void)
r[1].end = irq_of_parse_and_map(np, 0); r[1].end = irq_of_parse_and_map(np, 0);
r[1].flags = IORESOURCE_IRQ; r[1].flags = IORESOURCE_IRQ;
DBG("%s: name:start->end = %s:0x%lx-> 0x%lx\n", DBG("%s: name:start->end = %s:0x%lx-> 0x%lx\n",
__FUNCTION__,r[1].name, r[1].start, r[1].end); __func__,r[1].name, r[1].start, r[1].end);
tsi_eth_dev = tsi_eth_dev =
platform_device_register_simple("tsi-ethernet", i++, &r[0], platform_device_register_simple("tsi-ethernet", i++, &r[0],
......
...@@ -207,7 +207,7 @@ int __init tsi108_setup_pci(struct device_node *dev, u32 cfg_phys, int primary) ...@@ -207,7 +207,7 @@ int __init tsi108_setup_pci(struct device_node *dev, u32 cfg_phys, int primary)
/* PCI Config mapping */ /* PCI Config mapping */
tsi108_pci_cfg_base = (u32)ioremap(cfg_phys, TSI108_PCI_CFG_SIZE); tsi108_pci_cfg_base = (u32)ioremap(cfg_phys, TSI108_PCI_CFG_SIZE);
tsi108_pci_cfg_phys = cfg_phys; tsi108_pci_cfg_phys = cfg_phys;
DBG("TSI_PCI: %s tsi108_pci_cfg_base=0x%x\n", __FUNCTION__, DBG("TSI_PCI: %s tsi108_pci_cfg_base=0x%x\n", __func__,
tsi108_pci_cfg_base); tsi108_pci_cfg_base);
/* Fetch host bridge registers address */ /* Fetch host bridge registers address */
...@@ -395,7 +395,7 @@ static int pci_irq_host_xlate(struct irq_host *h, struct device_node *ct, ...@@ -395,7 +395,7 @@ static int pci_irq_host_xlate(struct irq_host *h, struct device_node *ct,
static int pci_irq_host_map(struct irq_host *h, unsigned int virq, static int pci_irq_host_map(struct irq_host *h, unsigned int virq,
irq_hw_number_t hw) irq_hw_number_t hw)
{ unsigned int irq; { unsigned int irq;
DBG("%s(%d, 0x%lx)\n", __FUNCTION__, virq, hw); DBG("%s(%d, 0x%lx)\n", __func__, virq, hw);
if ((virq >= 1) && (virq <= 4)){ if ((virq >= 1) && (virq <= 4)){
irq = virq + IRQ_PCI_INTAD_BASE - 1; irq = virq + IRQ_PCI_INTAD_BASE - 1;
get_irq_desc(irq)->status |= IRQ_LEVEL; get_irq_desc(irq)->status |= IRQ_LEVEL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment