public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC 1/2]drivers:staging:usbip:stub_dev.c change SPIN_LOCK_UNLOCKED to __SPIN_LOCK_UNLOCKED
@ 2011-07-29 17:20 Justin P. Mattock
  2011-07-29 17:20 ` [RFC 2/2]drivers:staging:usbip:vhci_hcd.c " Justin P. Mattock
  2011-08-23 21:41 ` [RFC 1/2]drivers:staging:usbip:stub_dev.c " Greg KH
  0 siblings, 2 replies; 4+ messages in thread
From: Justin P. Mattock @ 2011-07-29 17:20 UTC (permalink / raw)
  To: devel; +Cc: linux-kernel, gregkh, Justin P. Mattock

From: "Justin P. Mattock" <justinmattock@gmail.com>

The patch below updates SPIN_LOCK_UNLOCKED to __SPIN_LOCK_UNLOCKED since it is 
deprected according to my search results.
Note: Keep in mind I am not sure if this is the correct change for this(still learning)
even though it's commented out and such.(figured to give this a try and see).

Signed-off-by: Justin P. Mattock <justinmattock@gmail.com>

---
 drivers/staging/usbip/stub_dev.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/usbip/stub_dev.c b/drivers/staging/usbip/stub_dev.c
index fce22f2..fe09105 100644
--- a/drivers/staging/usbip/stub_dev.c
+++ b/drivers/staging/usbip/stub_dev.c
@@ -301,7 +301,7 @@ static struct stub_device *stub_device_alloc(struct usb_device *udev,
 	sdev->devid		= (busnum << 16) | devnum;
 	sdev->ud.side		= USBIP_STUB;
 	sdev->ud.status		= SDEV_ST_AVAILABLE;
-	/* sdev->ud.lock = SPIN_LOCK_UNLOCKED; */
+	/* sdev->ud.lock = __SPIN_LOCK_UNLOCKED(ud.lock); */
 	spin_lock_init(&sdev->ud.lock);
 	sdev->ud.tcp_socket	= NULL;
 
@@ -310,7 +310,7 @@ static struct stub_device *stub_device_alloc(struct usb_device *udev,
 	INIT_LIST_HEAD(&sdev->priv_free);
 	INIT_LIST_HEAD(&sdev->unlink_free);
 	INIT_LIST_HEAD(&sdev->unlink_tx);
-	/* sdev->priv_lock = SPIN_LOCK_UNLOCKED; */
+	/* sdev->priv_lock = __SPIN_LOCK_UNLOCKED(priv_lock); */
 	spin_lock_init(&sdev->priv_lock);
 
 	init_waitqueue_head(&sdev->tx_waitq);
-- 
1.7.6


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-08-27 15:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-29 17:20 [RFC 1/2]drivers:staging:usbip:stub_dev.c change SPIN_LOCK_UNLOCKED to __SPIN_LOCK_UNLOCKED Justin P. Mattock
2011-07-29 17:20 ` [RFC 2/2]drivers:staging:usbip:vhci_hcd.c " Justin P. Mattock
2011-08-23 21:41 ` [RFC 1/2]drivers:staging:usbip:stub_dev.c " Greg KH
2011-08-27 15:27   ` Justin P. Mattock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox