aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaxman Dewangan <[email protected]>2016-02-09 22:56:33 +0530
committerAlexandre Belloni <[email protected]>2016-03-14 17:08:12 +0100
commit08e37ef17db5b0d387564cf06520f6ff5f54c76b (patch)
tree622798a76193f2a6a6ce44743d5625daccc489bb
parentf604c48849a5408065d1b53e89588dd76054dd06 (diff)
mfd: max77686: do not set i2c client data for rtc i2c client
There is different RTC I2C address for RTC block in MAX77686. Driver is creating dummy i2c client for this address to access the register of this IP block. As there is no call to i2c_get_clientdata() for rtc_i2c client, there is no need to store pointer and hence removing the call to set client data for rtc i2c client. Suggested-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Laxman Dewangan <[email protected]> Tested-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Tested-by: Javier Martinez Canillas <[email protected]> Reviewed-by: Javier Martinez Canillas <[email protected]> Acked-by: Lee Jones <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]>
-rw-r--r--drivers/mfd/max77686.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mfd/max77686.c b/drivers/mfd/max77686.c
index d959ebbb2194..bda6fd7b093b 100644
--- a/drivers/mfd/max77686.c
+++ b/drivers/mfd/max77686.c
@@ -277,7 +277,6 @@ static int max77686_i2c_probe(struct i2c_client *i2c,
"Failed to allocate I2C device for RTC\n");
return -ENODEV;
}
- i2c_set_clientdata(max77686->rtc, max77686);
max77686->rtc_regmap =
devm_regmap_init_i2c(max77686->rtc,