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 4423ee6 commit d61b3f9Copy full SHA for d61b3f9
drivers/platform/chrome/cros_ec_lpc_mec.c
@@ -14,7 +14,7 @@
14
* This mutex must be held while accessing the EMI unit. We can't rely on the
15
* EC mutex because memmap data may be accessed without it being held.
16
*/
17
-static struct mutex io_mutex;
+static DEFINE_MUTEX(io_mutex);
18
static u16 mec_emi_base, mec_emi_end;
19
20
/**
@@ -142,7 +142,6 @@ EXPORT_SYMBOL(cros_ec_lpc_io_bytes_mec);
142
143
void cros_ec_lpc_mec_init(unsigned int base, unsigned int end)
144
{
145
- mutex_init(&io_mutex);
146
mec_emi_base = base;
147
mec_emi_end = end;
148
}
0 commit comments