浏览代码

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>
Eli Billauer 12 年之前
父节点
当前提交
26a6fc93fc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/staging/xillybus/xillybus_pcie.c

+ 1 - 1
drivers/staging/xillybus/xillybus_pcie.c

@@ -134,7 +134,7 @@ static int xilly_probe(struct pci_dev *pdev,
 	struct xilly_endpoint *endpoint;
 	struct xilly_endpoint *endpoint;
 	int rc = 0;
 	int rc = 0;
 
 
-	endpoint = xillybus_init_endpoint(pdev, NULL, &pci_hw);
+	endpoint = xillybus_init_endpoint(pdev, &pdev->dev, &pci_hw);
 
 
 	if (!endpoint)
 	if (!endpoint)
 		return -ENOMEM;
 		return -ENOMEM;