From: Eli Billauer Date: Fri, 18 Oct 2013 22:02:25 +0000 (+0300) Subject: staging: xillybus: Remember device pointer for use with dev_* functions X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=26a6fc93fc317d87d2fc2b5a9af8e0731b8b884c;p=linux-beck.git 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 Signed-off-by: Greg Kroah-Hartman --- 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;