File: hcd-0001-SPIN_LOCK_UNLOCKED-has-been-depreciated.patch

package info (click to toggle)
simavr 1.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 20,268 kB
  • sloc: ansic: 362,806; makefile: 622; ruby: 70; python: 63
file content (25 lines) | stat: -rw-r--r-- 789 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 39a45915645cf308b8f446867399b33244f006b1 Mon Sep 17 00:00:00 2001
From: root <root@ttyridal.(none)>
Date: Sun, 19 Feb 2012 17:20:55 +0100
Subject: [PATCH 1/2] SPIN_LOCK_UNLOCKED has been depreciated

---
 usb-vhci-hcd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/usb-vhci-hcd.c b/usb-vhci-hcd.c
index fed46aa..b107e1b 100644
--- a/usb-vhci-hcd.c
+++ b/usb-vhci-hcd.c
@@ -1040,7 +1040,7 @@ static int device_enum(struct device *dev, void *data)
 	return unlikely(*((const int *)data) == pdev->id) ? -EINVAL : 0;
 }
 
-static spinlock_t dev_enum_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(dev_enum_lock);
 
 int usb_vhci_hcd_register(const struct usb_vhci_ifc *ifc, void *context, u8 port_count, struct usb_vhci_device **vdev_ret)
 {
-- 
1.7.5.4