summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/tps65218.c
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2017-09-13 14:17:10 +0200
committerLee Jones <lee.jones@linaro.org>2017-10-13 11:42:59 +0200
commitb2b3adc93e9e46554bedf26f2ee081126c2b8a22 (patch)
treeeec9a8d1d066b7c3922968f458c42c25a4880f99 /drivers/mfd/tps65218.c
parentmfd: tps65218: Correct the config description (diff)
downloadlinux-b2b3adc93e9e46554bedf26f2ee081126c2b8a22.tar.xz
linux-b2b3adc93e9e46554bedf26f2ee081126c2b8a22.zip
mfd: tps65218: 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. Signed-off-by: Keerthy <j-keerthy@ti.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/tps65218.c')
-rw-r--r--drivers/mfd/tps65218.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/mfd/tps65218.c b/drivers/mfd/tps65218.c
index 13834a0d2817..910f569ff77c 100644
--- a/drivers/mfd/tps65218.c
+++ b/drivers/mfd/tps65218.c
@@ -215,17 +215,9 @@ static int tps65218_probe(struct i2c_client *client,
const struct i2c_device_id *ids)
{
struct tps65218 *tps;
- const struct of_device_id *match;
int ret;
unsigned int chipid;
- match = of_match_device(of_tps65218_match_table, &client->dev);
- if (!match) {
- dev_err(&client->dev,
- "Failed to find matching dt id\n");
- return -EINVAL;
- }
-
tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL);
if (!tps)
return -ENOMEM;