usb: gadget: udc: make debug prints compatible with both pci and platform devices
authorRaviteja Garimella <raviteja.garimella@broadcom.com>
Wed, 10 May 2017 12:51:18 +0000 (18:21 +0530)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 13 Jun 2017 10:21:01 +0000 (13:21 +0300)
commit498beb42814e3f734ea6d376a4854c7e0b6060a8
tree5fe27abd24c4ab2397f6153f8925dec15d7ff44e
parenta676fb62b15b8fdb3a3dce9679863195d50bdd06
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>
drivers/usb/gadget/udc/amd5536udc.h
drivers/usb/gadget/udc/amd5536udc_pci.c
drivers/usb/gadget/udc/snps_udc_core.c