Commit a2d2010d authored by Ruslan Babayev's avatar Ruslan Babayev Committed by Jonathan Cameron

iio: dac: ds4422/ds4424 drop of_node check

The driver doesn't actually rely on any DT properties. Removing this
check makes it usable on ACPI based platforms.
Signed-off-by: default avatarRuslan Babayev <ruslan@babayev.com>
Cc: xe-linux-external@cisco.com
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent ed1f310e
...@@ -236,12 +236,6 @@ static int ds4424_probe(struct i2c_client *client, ...@@ -236,12 +236,6 @@ static int ds4424_probe(struct i2c_client *client,
indio_dev->dev.of_node = client->dev.of_node; indio_dev->dev.of_node = client->dev.of_node;
indio_dev->dev.parent = &client->dev; indio_dev->dev.parent = &client->dev;
if (!client->dev.of_node) {
dev_err(&client->dev,
"Not found DT.\n");
return -ENODEV;
}
data->vcc_reg = devm_regulator_get(&client->dev, "vcc"); data->vcc_reg = devm_regulator_get(&client->dev, "vcc");
if (IS_ERR(data->vcc_reg)) { if (IS_ERR(data->vcc_reg)) {
dev_err(&client->dev, dev_err(&client->dev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment