projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f80828
)
fbdev/omap2: use DEFINE_SPINLOCK() instead of spin_lock_init().
author
Jiahua Yu
<yujiahua1@huawei.com>
Wed, 16 Jun 2021 03:17:13 +0000
(19:17 -0800)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Thu, 17 Jun 2021 17:43:42 +0000
(19:43 +0200)
spinlock can be initialized automatically with DEFINE_SPINLOCK()
rather than explicitly calling spin_lock_init().
Signed-off-by: Jiahua Yu <yujiahua1@huawei.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link:
https://patchwork.freedesktop.org/patch/msgid/20210616031713.24959-1-yujiahua1@huawei.com
drivers/video/fbdev/omap2/omapfb/dss/apply.c
patch
|
blob
|
history
diff --git
a/drivers/video/fbdev/omap2/omapfb/dss/apply.c
b/drivers/video/fbdev/omap2/omapfb/dss/apply.c
index
c710210
..
acca991
100644
(file)
--- a/
drivers/video/fbdev/omap2/omapfb/dss/apply.c
+++ b/
drivers/video/fbdev/omap2/omapfb/dss/apply.c
@@
-108,7
+108,7
@@
static struct {
} dss_data;
/* protects dss_data */
-static
spinlock_t data_lock
;
+static
DEFINE_SPINLOCK(data_lock)
;
/* lock for blocking functions */
static DEFINE_MUTEX(apply_lock);
static DECLARE_COMPLETION(extra_updated_completion);
@@
-131,8
+131,6
@@
static void apply_init_priv(void)
struct mgr_priv_data *mp;
int i;
- spin_lock_init(&data_lock);
-
for (i = 0; i < num_ovls; ++i) {
struct ovl_priv_data *op;