summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorEli Billauer <eli.billauer@gmail.com>2013-10-19 02:02:25 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-20 00:41:34 +0400
commit26a6fc93fc317d87d2fc2b5a9af8e0731b8b884c (patch)
treee0b8999bc1a239fb2ab8b76a190b6256d43e712a /drivers
parent5f45aa166847e362cb0e03ef66bf90d7fb5d38e4 (diff)
downloadlinux-26a6fc93fc317d87d2fc2b5a9af8e0731b8b884c.tar.xz
staging: xillybus: Remember device pointer for use with dev_* functions
This is necessary so that xillybus_core uses the correct device pointer for PCIe devices in diagnostic message calls (dev_err, dev_warn and dev_info) Signed-off-by: Eli Billauer <eli.billauer@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/xillybus/xillybus_pcie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/xillybus/xillybus_pcie.c b/drivers/staging/xillybus/xillybus_pcie.c
index 67013652358b..bf26f68ea8ab 100644
--- a/drivers/staging/xillybus/xillybus_pcie.c
+++ b/drivers/staging/xillybus/xillybus_pcie.c
@@ -134,7 +134,7 @@ static int xilly_probe(struct pci_dev *pdev,
struct xilly_endpoint *endpoint;
int rc = 0;
- endpoint = xillybus_init_endpoint(pdev, NULL, &pci_hw);
+ endpoint = xillybus_init_endpoint(pdev, &pdev->dev, &pci_hw);
if (!endpoint)
return -ENOMEM;