[adm5120] add USB drivers for the NFS-101U/WU profiles
[openwrt.git] / target / linux / s3c24xx / patches-2.6.24 / 1272-clean-remove-suspend-dependencies-syslog.patch.patch
1 From 04c9c142a341af62081e856d32149d9f544dbfbe Mon Sep 17 00:00:00 2001
2 From: Andy Green <andy@openmoko.com>
3 Date: Mon, 11 Aug 2008 20:49:56 +0100
4 Subject: [PATCH] clean-remove-suspend-dependencies-syslog.patch
5
6 Signed-off-by: Andy Green <andy@openmoko.com>
7 ---
8 include/linux/resume-dependency.h | 17 ++++-------------
9 1 files changed, 4 insertions(+), 13 deletions(-)
10
11 diff --git a/include/linux/resume-dependency.h b/include/linux/resume-dependency.h
12 index 959cadd..e284739 100644
13 --- a/include/linux/resume-dependency.h
14 +++ b/include/linux/resume-dependency.h
15 @@ -38,7 +38,6 @@ struct resume_dependency {
16 */
17
18 #define init_resume_dependency_list(_head) \
19 - printk(KERN_ERR "##### init_resume_dependency_list(head=%p)\n", (_head)); \
20 INIT_LIST_HEAD(&(_head)->list);
21
22
23 @@ -52,14 +51,11 @@ struct resume_dependency {
24 struct list_head *_pos, *_q; \
25 struct resume_dependency *_d; \
26 \
27 - printk(KERN_ERR "##### register_resume_dependency(head=%p, dep=%p)\n", (_head), (_dep)); \
28 (_dep)->called_flag = 1; \
29 list_for_each_safe(_pos, _q, &((_head)->list)) { \
30 _d = list_entry(_pos, struct resume_dependency, list); \
31 - if (_d == (_dep)) { \
32 + if (_d == (_dep)) \
33 list_del(_pos); \
34 - printk(KERN_ERR "##### duplicate dependency removed first\n"); \
35 - } \
36 } \
37 list_add(&(_dep)->list, &(_head)->list); \
38 }
39 @@ -73,12 +69,9 @@ struct resume_dependency {
40 struct list_head *_pos, *_q; \
41 struct resume_dependency *_dep; \
42 \
43 - printk(KERN_ERR "##### callback_all_resume_dependencies(head=%p)\n", (_head)); \
44 list_for_each_safe(_pos, _q, &((_head)->list)) { \
45 _dep = list_entry(_pos, struct resume_dependency, list); \
46 - printk(KERN_ERR "##### callback list entry (head=%p, dep=%p)\n", (_head), (_dep)); \
47 _dep->called_flag = 1; \
48 - printk(KERN_ERR "##### callback=%p(context=%p))\n", (_dep->callback),(_dep->context)); \
49 (_dep->callback)(_dep->context); \
50 list_del(_pos); \
51 } \
52 @@ -88,19 +81,17 @@ struct resume_dependency {
53 * handler will function as normal. The dependency is activated by the suspend
54 * handler for the driver that will be doing the callbacks. This ensures that
55 * if the suspend is aborted for any reason (error, driver busy, etc), that all
56 - * suspended drivers will resume, even if the driver upon which they are dependent
57 - * did not suspend, and hence will not resume, and thus would be unable to perform
58 - * the callbacks.
59 + * suspended drivers will resume, even if the driver upon which they are
60 + * dependent did not suspend, and hence will not resume, and thus would be
61 + * unable to perform the callbacks.
62 */
63
64 #define activate_all_resume_dependencies(_head) { \
65 struct list_head *_pos, *_q; \
66 struct resume_dependency *_dep; \
67 \
68 - printk(KERN_ERR "##### activate_all_resume_dependencies(head=%p)\n", (_head)); \
69 list_for_each_safe(_pos, _q, &((_head)->list)) { \
70 _dep = list_entry(_pos, struct resume_dependency, list); \
71 - printk(KERN_ERR "##### activating callback list entry (head=%p, dep=%p)\n", (_head), (_dep)); \
72 _dep->called_flag = 0; \
73 } \
74 }
75 --
76 1.5.6.5
77
This page took 0.0518 seconds and 5 git commands to generate.