Fixes checkpatch.pl warning "Prefer using '"%s...", __func__' to using '<function name>', this function's name, in a string". Signed-off-by: Simon Sandström <simon@xxxxxxxxxx> --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 22 +++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000/cell_probe.c b/drivers/staging/kpc2000/kpc2000/cell_probe.c index 95bfbe4aae4d..7b850f3e808b 100644 --- a/drivers/staging/kpc2000/kpc2000/cell_probe.c +++ b/drivers/staging/kpc2000/kpc2000/cell_probe.c @@ -299,7 +299,8 @@ static int probe_core_uio(unsigned int core_num, struct kp2000_device *pcard, kudev = kzalloc(sizeof(struct kpc_uio_device), GFP_KERNEL); if (!kudev) { - dev_err(&pcard->pdev->dev, "probe_core_uio: failed to kzalloc kpc_uio_device\n"); + dev_err(&pcard->pdev->dev, "%s: failed to kzalloc kpc_uio_device\n", + __func__); return -ENOMEM; } @@ -327,7 +328,8 @@ static int probe_core_uio(unsigned int core_num, struct kp2000_device *pcard, kudev->dev = device_create(kpc_uio_class, &pcard->pdev->dev, MKDEV(0, 0), kudev, "%s.%d.%d.%d", kudev->uioinfo.name, pcard->card_num, cte.type, kudev->core_num); if (IS_ERR(kudev->dev)) { - dev_err(&pcard->pdev->dev, "probe_core_uio device_create failed!\n"); + dev_err(&pcard->pdev->dev, "%s: device_create failed!\n", + __func__); kfree(kudev); return -ENODEV; } @@ -335,7 +337,8 @@ static int probe_core_uio(unsigned int core_num, struct kp2000_device *pcard, rv = uio_register_device(kudev->dev, &kudev->uioinfo); if (rv) { - dev_err(&pcard->pdev->dev, "probe_core_uio failed uio_register_device: %d\n", rv); + dev_err(&pcard->pdev->dev, "%s: failed uio_register_device: %d\n", + __func__, rv); put_device(kudev->dev); kfree(kudev); return rv; @@ -410,7 +413,8 @@ static int kp2000_setup_dma_controller(struct kp2000_device *pcard) return 0; err_out: - dev_err(&pcard->pdev->dev, "kp2000_setup_dma_controller: failed to add a DMA Engine: %d\n", err); + dev_err(&pcard->pdev->dev, "%s: failed to add a DMA Engine: %d\n", + __func__, err); return err; } @@ -423,7 +427,8 @@ int kp2000_probe_cores(struct kp2000_device *pcard) unsigned int highest_core_id = 0; struct core_table_entry cte; - dev_dbg(&pcard->pdev->dev, "kp2000_probe_cores(pcard = %p / %d)\n", pcard, pcard->card_num); + dev_dbg(&pcard->pdev->dev, "%s(pcard = %p / %d)\n", __func__, pcard, + pcard->card_num); err = kp2000_setup_dma_controller(pcard); if (err) @@ -472,8 +477,8 @@ int kp2000_probe_cores(struct kp2000_device *pcard) } if (err) { dev_err(&pcard->pdev->dev, - "kp2000_probe_cores: failed to add core %d: %d\n", - i, err); + "%s: failed to add core %d: %d\n", + __func__, i, err); goto error; } core_num++; @@ -492,7 +497,8 @@ int kp2000_probe_cores(struct kp2000_device *pcard) cte.irq_base_num = 0; err = probe_core_uio(0, pcard, "kpc_uio", cte); if (err) { - dev_err(&pcard->pdev->dev, "kp2000_probe_cores: failed to add board_info core: %d\n", err); + dev_err(&pcard->pdev->dev, "%s: failed to add board_info core: %d\n", + __func__, err); goto error; } -- 2.20.1 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel