We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2552fb6 commit 13e133eCopy full SHA for 13e133e
drivers/gpu/drm/gma500/power.c
@@ -36,7 +36,7 @@
36
#include <linux/pm_runtime.h>
37
38
static struct mutex power_mutex; /* Serialize power ops */
39
-static spinlock_t power_ctrl_lock; /* Serialize power claim */
+static DEFINE_SPINLOCK(power_ctrl_lock); /* Serialize power claim */
40
41
/**
42
* gma_power_init - initialise power manager
@@ -55,7 +55,6 @@ void gma_power_init(struct drm_device *dev)
55
dev_priv->display_power = true; /* We start active */
56
dev_priv->display_count = 0; /* Currently no users */
57
dev_priv->suspended = false; /* And not suspended */
58
- spin_lock_init(&power_ctrl_lock);
59
mutex_init(&power_mutex);
60
61
if (dev_priv->ops->init_pm)
0 commit comments