Commit 39cfdf55 authored by Simon Sandström's avatar Simon Sandström Committed by Greg Kroah-Hartman

staging: kpc2000: use __func__ in debug messages

Fixes checkpatch.pl warning "Prefer using '"%s...", __func__' to using
'<function name>', this function's name, in a string".
Signed-off-by: default avatarSimon Sandström <simon@nikanor.nu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9876ecaa
......@@ -327,7 +327,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 +336,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 +412,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 +426,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 +476,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 +496,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;
}
......
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