mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
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>
This commit is contained in:
parent
5f45aa1668
commit
26a6fc93fc
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue