Commit 745cde4e authored by Simon Sandström's avatar Simon Sandström Committed by Greg Kroah-Hartman

staging: kpc2000: use __func__ in debug messages in core.c

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 5298be48
...@@ -312,8 +312,8 @@ static int kp2000_pcie_probe(struct pci_dev *pdev, ...@@ -312,8 +312,8 @@ static int kp2000_pcie_probe(struct pci_dev *pdev,
unsigned long dma_bar_phys_len; unsigned long dma_bar_phys_len;
u16 regval; u16 regval;
dev_dbg(&pdev->dev, "kp2000_pcie_probe(pdev = [%p], id = [%p])\n", dev_dbg(&pdev->dev, "%s(pdev = [%p], id = [%p])\n",
pdev, id); __func__, pdev, id);
/* /*
* Step 1: Allocate a struct for the pcard * Step 1: Allocate a struct for the pcard
...@@ -481,7 +481,7 @@ static int kp2000_pcie_probe(struct pci_dev *pdev, ...@@ -481,7 +481,7 @@ static int kp2000_pcie_probe(struct pci_dev *pdev,
pcard->name, pcard); pcard->name, pcard);
if (rv) { if (rv) {
dev_err(&pcard->pdev->dev, dev_err(&pcard->pdev->dev,
"kp2000_pcie_probe: failed to request_irq: %d\n", rv); "%s: failed to request_irq: %d\n", __func__, rv);
goto out8b; goto out8b;
} }
...@@ -507,7 +507,7 @@ static int kp2000_pcie_probe(struct pci_dev *pdev, ...@@ -507,7 +507,7 @@ static int kp2000_pcie_probe(struct pci_dev *pdev,
writel(KPC_DMA_CARD_IRQ_ENABLE | KPC_DMA_CARD_USER_INTERRUPT_MODE, writel(KPC_DMA_CARD_IRQ_ENABLE | KPC_DMA_CARD_USER_INTERRUPT_MODE,
pcard->dma_common_regs); pcard->dma_common_regs);
dev_dbg(&pcard->pdev->dev, "kp2000_pcie_probe() complete!\n"); dev_dbg(&pcard->pdev->dev, "%s() complete!\n", __func__);
mutex_unlock(&pcard->sem); mutex_unlock(&pcard->sem);
return 0; return 0;
...@@ -541,7 +541,7 @@ static void kp2000_pcie_remove(struct pci_dev *pdev) ...@@ -541,7 +541,7 @@ static void kp2000_pcie_remove(struct pci_dev *pdev)
{ {
struct kp2000_device *pcard = pci_get_drvdata(pdev); struct kp2000_device *pcard = pci_get_drvdata(pdev);
dev_dbg(&pdev->dev, "kp2000_pcie_remove(pdev=%p)\n", pdev); dev_dbg(&pdev->dev, "%s(pdev=%p)\n", __func__, pdev);
if (!pcard) if (!pcard)
return; return;
......
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