diff options
| author | Ruslan Babayev <ruslan@babayev.com> | 2019-05-05 15:24:36 -0400 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2019-05-11 07:19:35 -0400 |
| commit | a2d2010d95cd7ffe3773aba6eaee35d54e332c25 (patch) | |
| tree | 7aa35e99025874eee7c4f7be882d059fb1a71282 /drivers | |
| parent | ed1f310ee23d277d5386f532165911df69afe62f (diff) | |
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: Ruslan Babayev <ruslan@babayev.com>
Cc: xe-linux-external@cisco.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/iio/dac/ds4424.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/iio/dac/ds4424.c b/drivers/iio/dac/ds4424.c index 883a47562055..2b3ba1a66fe8 100644 --- a/drivers/iio/dac/ds4424.c +++ b/drivers/iio/dac/ds4424.c | |||
| @@ -236,12 +236,6 @@ static int ds4424_probe(struct i2c_client *client, | |||
| 236 | indio_dev->dev.of_node = client->dev.of_node; | 236 | indio_dev->dev.of_node = client->dev.of_node; |
| 237 | indio_dev->dev.parent = &client->dev; | 237 | indio_dev->dev.parent = &client->dev; |
| 238 | 238 | ||
| 239 | if (!client->dev.of_node) { | ||
| 240 | dev_err(&client->dev, | ||
| 241 | "Not found DT.\n"); | ||
| 242 | return -ENODEV; | ||
| 243 | } | ||
| 244 | |||
| 245 | data->vcc_reg = devm_regulator_get(&client->dev, "vcc"); | 239 | data->vcc_reg = devm_regulator_get(&client->dev, "vcc"); |
| 246 | if (IS_ERR(data->vcc_reg)) { | 240 | if (IS_ERR(data->vcc_reg)) { |
| 247 | dev_err(&client->dev, | 241 | dev_err(&client->dev, |
