diff options
author | Keerthy <j-keerthy@ti.com> | 2017-08-30 12:29:10 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2017-10-13 12:42:58 +0300 |
commit | 511cb17448d95e4277451cdee882e72b6a9a3099 (patch) | |
tree | 585e0da9c7c3a0dc7d2ca5d1e1bcd8df4f8bf8a0 /drivers/regulator/tps65217-regulator.c | |
parent | cfc95173ba8e18e41d9a69d2747d0f2738a2a551 (diff) | |
download | linux-511cb17448d95e4277451cdee882e72b6a9a3099.tar.xz |
mfd: tps65217: Introduce dependency on CONFIG_OF
Currently the driver boots only via device tree hence add a
dependency on CONFIG_OF. This leaves with a bunch of unused code
so clean that up. This patch also makes use of probe_new function
in place of the probe function so as to avoid passing i2c_device_id.
Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/regulator/tps65217-regulator.c')
-rw-r--r-- | drivers/regulator/tps65217-regulator.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/regulator/tps65217-regulator.c b/drivers/regulator/tps65217-regulator.c index 5324dc9e6d6e..7b12e880d1ea 100644 --- a/drivers/regulator/tps65217-regulator.c +++ b/drivers/regulator/tps65217-regulator.c @@ -228,11 +228,6 @@ static int tps65217_regulator_probe(struct platform_device *pdev) int i, ret; unsigned int val; - if (tps65217_chip_id(tps) != TPS65217) { - dev_err(&pdev->dev, "Invalid tps chip version\n"); - return -ENODEV; - } - /* Allocate memory for strobes */ tps->strobes = devm_kzalloc(&pdev->dev, sizeof(u8) * TPS65217_NUM_REGULATOR, GFP_KERNEL); |