diff options
author | Raviteja Garimella <raviteja.garimella@broadcom.com> | 2017-05-10 15:51:18 +0300 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2017-06-13 13:21:01 +0300 |
commit | 498beb42814e3f734ea6d376a4854c7e0b6060a8 (patch) | |
tree | 5fe27abd24c4ab2397f6153f8925dec15d7ff44e /drivers/usb/gadget/udc/amd5536udc_pci.c | |
parent | a676fb62b15b8fdb3a3dce9679863195d50bdd06 (diff) | |
download | linux-498beb42814e3f734ea6d376a4854c7e0b6060a8.tar.xz |
usb: gadget: udc: make debug prints compatible with both pci and platform devices
This patch adds a struct device member to UDC data structure and
makes changes to the arguments of dev_err and dev_dbg calls so that
the debug prints work for both pci and platform devices.
Signed-off-by: Raviteja Garimella <raviteja.garimella@broadcom.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/gadget/udc/amd5536udc_pci.c')
-rw-r--r-- | drivers/usb/gadget/udc/amd5536udc_pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/udc/amd5536udc_pci.c b/drivers/usb/gadget/udc/amd5536udc_pci.c index 2a2d0a96fe24..57a13f080a79 100644 --- a/drivers/usb/gadget/udc/amd5536udc_pci.c +++ b/drivers/usb/gadget/udc/amd5536udc_pci.c @@ -168,6 +168,7 @@ static int udc_pci_probe( dev->phys_addr = resource; dev->irq = pdev->irq; dev->pdev = pdev; + dev->dev = &pdev->dev; /* general probing */ if (udc_probe(dev)) { |