]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
staging: xillybus: Remember device pointer for use with dev_* functions
authorEli Billauer <eli.billauer@gmail.com>
Fri, 18 Oct 2013 22:02:25 +0000 (01:02 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 19 Oct 2013 20:41:34 +0000 (13:41 -0700)
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>
drivers/staging/xillybus/xillybus_pcie.c

index 67013652358b905039bbfae37791cb721baf7352..bf26f68ea8ab1dd54eb5afdcba2baa6d32f072bb 100644 (file)
@@ -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;