summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux/linux-omap-2.6.29/isp/v4l/0002-V4L-Int-if-v4l2_int_device_try_attach_all-requires.patch
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:14:24 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:29:45 +0100
commit29d6678fd546377459ef75cf54abeef5b969b5cf (patch)
tree8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-kernel/linux/linux-omap-2.6.29/isp/v4l/0002-V4L-Int-if-v4l2_int_device_try_attach_all-requires.patch
parentda49de6885ee1bc424e70bc02f21f6ab920efb55 (diff)
downloadpoky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-kernel/linux/linux-omap-2.6.29/isp/v4l/0002-V4L-Int-if-v4l2_int_device_try_attach_all-requires.patch')
-rw-r--r--meta/recipes-kernel/linux/linux-omap-2.6.29/isp/v4l/0002-V4L-Int-if-v4l2_int_device_try_attach_all-requires.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-omap-2.6.29/isp/v4l/0002-V4L-Int-if-v4l2_int_device_try_attach_all-requires.patch b/meta/recipes-kernel/linux/linux-omap-2.6.29/isp/v4l/0002-V4L-Int-if-v4l2_int_device_try_attach_all-requires.patch
new file mode 100644
index 0000000000..45e27a2fda
--- /dev/null
+++ b/meta/recipes-kernel/linux/linux-omap-2.6.29/isp/v4l/0002-V4L-Int-if-v4l2_int_device_try_attach_all-requires.patch
@@ -0,0 +1,50 @@
1From 5b007183d51543624bc9f582966f245a64157b57 Mon Sep 17 00:00:00 2001
2From: Sakari Ailus <sakari.ailus@nokia.com>
3Date: Fri, 31 Oct 2008 11:51:30 +0200
4Subject: [PATCH] V4L: Int if: v4l2_int_device_try_attach_all requires mutex
5
6Signed-off-by: Sakari Ailus <sakari.ailus@nokia.com>
7---
8 drivers/media/video/v4l2-int-device.c | 12 ++++++++++--
9 1 files changed, 10 insertions(+), 2 deletions(-)
10
11diff --git a/drivers/media/video/v4l2-int-device.c b/drivers/media/video/v4l2-int-device.c
12index a935bae..eb8dc84 100644
13--- a/drivers/media/video/v4l2-int-device.c
14+++ b/drivers/media/video/v4l2-int-device.c
15@@ -32,7 +32,7 @@
16 static DEFINE_MUTEX(mutex);
17 static LIST_HEAD(int_list);
18
19-void v4l2_int_device_try_attach_all(void)
20+static void __v4l2_int_device_try_attach_all(void)
21 {
22 struct v4l2_int_device *m, *s;
23
24@@ -66,6 +66,14 @@ void v4l2_int_device_try_attach_all(void)
25 }
26 }
27 }
28+
29+void v4l2_int_device_try_attach_all(void)
30+{
31+ mutex_lock(&mutex);
32+ __v4l2_int_device_try_attach_all();
33+ mutex_unlock(&mutex);
34+}
35+
36 EXPORT_SYMBOL_GPL(v4l2_int_device_try_attach_all);
37
38 static int ioctl_sort_cmp(const void *a, const void *b)
39@@ -89,7 +97,7 @@ int v4l2_int_device_register(struct v4l2_int_device *d)
40 &ioctl_sort_cmp, NULL);
41 mutex_lock(&mutex);
42 list_add(&d->head, &int_list);
43- v4l2_int_device_try_attach_all();
44+ __v4l2_int_device_try_attach_all();
45 mutex_unlock(&mutex);
46
47 return 0;
48--
491.5.6.5
50