* [PATCH] mfd: max77686: Remove unused iolock mutex
@ 2012-07-06 7:32 Axel Lin
2012-07-06 8:12 ` Kyungmin Park
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2012-07-06 7:32 UTC (permalink / raw)
To: SamuelOrtiz
Cc: Chiwoong Byun, Jonghwa Lee, Myungjoo Ham, Kyungmin Park,
Yadwinder Singh Brar, linux-kernel
Now this driver is using regmap API, the iolock mutex is not used and can be
removed.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/mfd/max77686.c | 3 ---
include/linux/mfd/max77686-private.h | 1 -
2 files changed, 4 deletions(-)
diff --git a/drivers/mfd/max77686.c b/drivers/mfd/max77686.c
index 11e5601..9e7e1d3 100644
--- a/drivers/mfd/max77686.c
+++ b/drivers/mfd/max77686.c
@@ -27,7 +27,6 @@
#include <linux/i2c.h>
#include <linux/pm_runtime.h>
#include <linux/module.h>
-#include <linux/mutex.h>
#include <linux/mfd/core.h>
#include <linux/mfd/max77686.h>
#include <linux/mfd/max77686-private.h>
@@ -79,8 +78,6 @@ static int max77686_i2c_probe(struct i2c_client *i2c,
max77686->wakeup = pdata->wakeup;
max77686->irq_gpio = pdata->irq_gpio;
- mutex_init(&max77686->iolock);
-
if (regmap_read(max77686->regmap,
MAX77686_REG_DEVICE_ID, &data) < 0) {
dev_err(max77686->dev,
diff --git a/include/linux/mfd/max77686-private.h b/include/linux/mfd/max77686-private.h
index 962f65e..d327d49 100644
--- a/include/linux/mfd/max77686-private.h
+++ b/include/linux/mfd/max77686-private.h
@@ -219,7 +219,6 @@ struct max77686_dev {
struct device *dev;
struct i2c_client *i2c; /* 0xcc / PMIC, Battery Control, and FLASH */
struct i2c_client *rtc; /* slave addr 0x0c */
- struct mutex iolock;
int type;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mfd: max77686: Remove unused iolock mutex
2012-07-06 7:32 [PATCH] mfd: max77686: Remove unused iolock mutex Axel Lin
@ 2012-07-06 8:12 ` Kyungmin Park
0 siblings, 0 replies; 2+ messages in thread
From: Kyungmin Park @ 2012-07-06 8:12 UTC (permalink / raw)
To: Axel Lin
Cc: SamuelOrtiz, Chiwoong Byun, Jonghwa Lee, Myungjoo Ham,
Yadwinder Singh Brar, linux-kernel
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
On Fri, Jul 6, 2012 at 4:32 PM, Axel Lin <axel.lin@gmail.com> wrote:
> Now this driver is using regmap API, the iolock mutex is not used and can be
> removed.
>
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
> ---
> drivers/mfd/max77686.c | 3 ---
> include/linux/mfd/max77686-private.h | 1 -
> 2 files changed, 4 deletions(-)
>
> diff --git a/drivers/mfd/max77686.c b/drivers/mfd/max77686.c
> index 11e5601..9e7e1d3 100644
> --- a/drivers/mfd/max77686.c
> +++ b/drivers/mfd/max77686.c
> @@ -27,7 +27,6 @@
> #include <linux/i2c.h>
> #include <linux/pm_runtime.h>
> #include <linux/module.h>
> -#include <linux/mutex.h>
> #include <linux/mfd/core.h>
> #include <linux/mfd/max77686.h>
> #include <linux/mfd/max77686-private.h>
> @@ -79,8 +78,6 @@ static int max77686_i2c_probe(struct i2c_client *i2c,
> max77686->wakeup = pdata->wakeup;
> max77686->irq_gpio = pdata->irq_gpio;
>
> - mutex_init(&max77686->iolock);
> -
> if (regmap_read(max77686->regmap,
> MAX77686_REG_DEVICE_ID, &data) < 0) {
> dev_err(max77686->dev,
> diff --git a/include/linux/mfd/max77686-private.h b/include/linux/mfd/max77686-private.h
> index 962f65e..d327d49 100644
> --- a/include/linux/mfd/max77686-private.h
> +++ b/include/linux/mfd/max77686-private.h
> @@ -219,7 +219,6 @@ struct max77686_dev {
> struct device *dev;
> struct i2c_client *i2c; /* 0xcc / PMIC, Battery Control, and FLASH */
> struct i2c_client *rtc; /* slave addr 0x0c */
> - struct mutex iolock;
>
> int type;
>
> --
> 1.7.9.5
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-06 8:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-06 7:32 [PATCH] mfd: max77686: Remove unused iolock mutex Axel Lin
2012-07-06 8:12 ` Kyungmin Park
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox