summaryrefslogtreecommitdiff
path: root/drivers/net/ieee802154/adf7242.c
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2017-11-28 15:53:12 +0300
committerStefan Schmidt <stefan@osg.samsung.com>2017-11-29 18:49:41 +0300
commit388b3b2b03701f3b3c10975c272892d7f78080df (patch)
tree1ce09bc0ba48ecf1a156ebc6850ee1787b5f5bfa /drivers/net/ieee802154/adf7242.c
parent44fde7bbcc100ab4d37e74f219e8c17fc906fab7 (diff)
downloadlinux-388b3b2b03701f3b3c10975c272892d7f78080df.tar.xz
net: ieee802154: adf7242: Fix bug if defined DEBUG
This fixes undefined reference to struct adf7242_local *lp in case DEBUG is defined. Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Stefan Schmidt <stefan@osg.samsung.com>
Diffstat (limited to 'drivers/net/ieee802154/adf7242.c')
-rw-r--r--drivers/net/ieee802154/adf7242.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ieee802154/adf7242.c b/drivers/net/ieee802154/adf7242.c
index 56f4ca85492a..a11948ab3f28 100644
--- a/drivers/net/ieee802154/adf7242.c
+++ b/drivers/net/ieee802154/adf7242.c
@@ -888,7 +888,7 @@ static const struct ieee802154_ops adf7242_ops = {
.set_cca_ed_level = adf7242_set_cca_ed_level,
};
-static void adf7242_debug(u8 irq1)
+static void adf7242_debug(struct adf7242_local *lp, u8 irq1)
{
#ifdef DEBUG
u8 stat;
@@ -932,7 +932,7 @@ static irqreturn_t adf7242_isr(int irq, void *data)
dev_err(&lp->spi->dev, "%s :ERROR IRQ1 = 0x%X\n",
__func__, irq1);
- adf7242_debug(irq1);
+ adf7242_debug(lp, irq1);
xmit = test_bit(FLAG_XMIT, &lp->flags);