diff options
Diffstat (limited to 'arch/arm/mach-w90x900')
-rw-r--r-- | arch/arm/mach-w90x900/mfp-w90p910.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/arm/mach-w90x900/mfp-w90p910.c b/arch/arm/mach-w90x900/mfp-w90p910.c index e11a32b6856d..4533098a0ee4 100644 --- a/arch/arm/mach-w90x900/mfp-w90p910.c +++ b/arch/arm/mach-w90x900/mfp-w90p910.c | |||
@@ -40,7 +40,7 @@ | |||
40 | #define ENI2C0 (0x01 << 14) | 40 | #define ENI2C0 (0x01 << 14) |
41 | #define ENI2C1 (0x01 << 16) | 41 | #define ENI2C1 (0x01 << 16) |
42 | 42 | ||
43 | static DECLARE_MUTEX(mfp_sem); | 43 | static DEFINE_MUTEX(mfp_mutex); |
44 | 44 | ||
45 | void mfp_set_groupf(struct device *dev) | 45 | void mfp_set_groupf(struct device *dev) |
46 | { | 46 | { |
@@ -49,7 +49,7 @@ void mfp_set_groupf(struct device *dev) | |||
49 | 49 | ||
50 | BUG_ON(!dev); | 50 | BUG_ON(!dev); |
51 | 51 | ||
52 | down(&mfp_sem); | 52 | mutex_lock(&mfp_mutex); |
53 | 53 | ||
54 | dev_id = dev_name(dev); | 54 | dev_id = dev_name(dev); |
55 | 55 | ||
@@ -62,7 +62,7 @@ void mfp_set_groupf(struct device *dev) | |||
62 | 62 | ||
63 | __raw_writel(mfpen, REG_MFSEL); | 63 | __raw_writel(mfpen, REG_MFSEL); |
64 | 64 | ||
65 | up(&mfp_sem); | 65 | mutex_unlock(&mfp_mutex); |
66 | } | 66 | } |
67 | EXPORT_SYMBOL(mfp_set_groupf); | 67 | EXPORT_SYMBOL(mfp_set_groupf); |
68 | 68 | ||
@@ -73,7 +73,7 @@ void mfp_set_groupc(struct device *dev) | |||
73 | 73 | ||
74 | BUG_ON(!dev); | 74 | BUG_ON(!dev); |
75 | 75 | ||
76 | down(&mfp_sem); | 76 | mutex_lock(&mfp_mutex); |
77 | 77 | ||
78 | dev_id = dev_name(dev); | 78 | dev_id = dev_name(dev); |
79 | 79 | ||
@@ -92,7 +92,7 @@ void mfp_set_groupc(struct device *dev) | |||
92 | 92 | ||
93 | __raw_writel(mfpen, REG_MFSEL); | 93 | __raw_writel(mfpen, REG_MFSEL); |
94 | 94 | ||
95 | up(&mfp_sem); | 95 | mutex_unlock(&mfp_mutex); |
96 | } | 96 | } |
97 | EXPORT_SYMBOL(mfp_set_groupc); | 97 | EXPORT_SYMBOL(mfp_set_groupc); |
98 | 98 | ||
@@ -103,7 +103,7 @@ void mfp_set_groupi(struct device *dev) | |||
103 | 103 | ||
104 | BUG_ON(!dev); | 104 | BUG_ON(!dev); |
105 | 105 | ||
106 | down(&mfp_sem); | 106 | mutex_lock(&mfp_mutex); |
107 | 107 | ||
108 | dev_id = dev_name(dev); | 108 | dev_id = dev_name(dev); |
109 | 109 | ||
@@ -120,7 +120,7 @@ void mfp_set_groupi(struct device *dev) | |||
120 | 120 | ||
121 | __raw_writel(mfpen, REG_MFSEL); | 121 | __raw_writel(mfpen, REG_MFSEL); |
122 | 122 | ||
123 | up(&mfp_sem); | 123 | mutex_unlock(&mfp_mutex); |
124 | } | 124 | } |
125 | EXPORT_SYMBOL(mfp_set_groupi); | 125 | EXPORT_SYMBOL(mfp_set_groupi); |
126 | 126 | ||
@@ -131,7 +131,7 @@ void mfp_set_groupg(struct device *dev) | |||
131 | 131 | ||
132 | BUG_ON(!dev); | 132 | BUG_ON(!dev); |
133 | 133 | ||
134 | down(&mfp_sem); | 134 | mutex_lock(&mfp_mutex); |
135 | 135 | ||
136 | dev_id = dev_name(dev); | 136 | dev_id = dev_name(dev); |
137 | 137 | ||
@@ -152,7 +152,7 @@ void mfp_set_groupg(struct device *dev) | |||
152 | 152 | ||
153 | __raw_writel(mfpen, REG_MFSEL); | 153 | __raw_writel(mfpen, REG_MFSEL); |
154 | 154 | ||
155 | up(&mfp_sem); | 155 | mutex_unlock(&mfp_mutex); |
156 | } | 156 | } |
157 | EXPORT_SYMBOL(mfp_set_groupg); | 157 | EXPORT_SYMBOL(mfp_set_groupg); |
158 | 158 | ||