summaryrefslogtreecommitdiffstats
path: root/drivers/staging/xillybus/xillybus_pcie.c
diff options
context:
space:
mode:
authorEli Billauer2013-10-19 00:02:25 +0200
committerGreg Kroah-Hartman2013-10-19 22:41:34 +0200
commit26a6fc93fc317d87d2fc2b5a9af8e0731b8b884c (patch)
treee0b8999bc1a239fb2ab8b76a190b6256d43e712a /drivers/staging/xillybus/xillybus_pcie.c
parentstaging/lustre/lnet: Remove unnecessary spaces in router_proc.c (diff)
downloadkernel-qcow2-linux-26a6fc93fc317d87d2fc2b5a9af8e0731b8b884c.tar.gz
kernel-qcow2-linux-26a6fc93fc317d87d2fc2b5a9af8e0731b8b884c.tar.xz
kernel-qcow2-linux-26a6fc93fc317d87d2fc2b5a9af8e0731b8b884c.zip
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/staging/xillybus/xillybus_pcie.c')
-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;