On Thu, Jul 25, 2013, Greg KH gre...@linuxfoundation.org said:
On Thu, Jul 25, 2013 at 10:19:31AM +0530, navin patidar wrote:
-pr_warning(Unable to start control thread\n);
+struct device *dev;
+
+if (ud-side == USBIP_STUB)
+dev = container_of(ud,
On Wed, Jul 24, 2013, Greg KH gre...@linuxfoundation.org said:
On Thu, Jun 27, 2013 at 03:34:52PM +0530, navin patidar wrote:
dev_warn() is preferred over pr_warning().
container_of() is used to get usb_driver pointer from usbip_device container
(stub_device or vhci_device), to get device
On Thu, Jul 25, 2013 at 10:19:31AM +0530, navin patidar wrote:
-pr_warning(Unable to start control thread\n);
+struct device *dev;
+
+if (ud-side == USBIP_STUB)
+dev = container_of(ud, struct stub_device, ud)-udev-dev;
+else
+
On Thu, Jun 27, 2013 at 03:34:52PM +0530, navin patidar wrote:
dev_warn() is preferred over pr_warning().
container_of() is used to get usb_driver pointer from usbip_device container
(stub_device or vhci_device), to get device structure required for dev_warn().
Signed-off-by: navin patidar
dev_warn() is preferred over pr_warning().
container_of() is used to get usb_driver pointer from usbip_device container
(stub_device or vhci_device), to get device structure required for dev_warn().
Signed-off-by: navin patidar nav...@cdac.in
---
drivers/staging/usbip/usbip_event.c | 11