summaryrefslogtreecommitdiff
path: root/drivers/staging/xillybus
diff options
context:
space:
mode:
authorEli Billauer <eli.billauer@gmail.com>2013-10-18 22:02:25 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-19 20:41:34 (GMT)
commit26a6fc93fc317d87d2fc2b5a9af8e0731b8b884c (patch)
treee0b8999bc1a239fb2ab8b76a190b6256d43e712a /drivers/staging/xillybus
parent5f45aa166847e362cb0e03ef66bf90d7fb5d38e4 (diff)
downloadlinux-fsl-qoriq-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/staging/xillybus')
-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 6701365..bf26f68 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;