]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mfd: pm8008: Drop unused driver data
authorJohan Hovold <johan+linaro@kernel.org>
Sat, 8 Jun 2024 15:55:21 +0000 (17:55 +0200)
committerLee Jones <lee@kernel.org>
Thu, 13 Jun 2024 17:42:21 +0000 (18:42 +0100)
The i2c client driver data pointer has never been used so drop the
unnecessary assignment.

Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20240608155526.12996-8-johan+linaro@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/qcom-pm8008.c

index bab17417aeec3a06ec8824655bca03e90348a2c4..72199840231eca12365b77467f4180e6d2b7452c 100644 (file)
@@ -167,8 +167,6 @@ static int pm8008_probe(struct i2c_client *client)
        if (IS_ERR(regmap))
                return PTR_ERR(regmap);
 
-       i2c_set_clientdata(client, regmap);
-
        reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
        if (IS_ERR(reset))
                return PTR_ERR(reset);