mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-16 07:35:14 +00:00
iio: dac: ds4422/ds4424 drop of_node check
commit a2d2010d95
upstream.
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>
Cc: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
74c9985e30
commit
0365fcac3a
1 changed files with 0 additions and 6 deletions
|
@ -236,12 +236,6 @@ static int ds4424_probe(struct i2c_client *client,
|
|||
indio_dev->dev.of_node = client->dev.of_node;
|
||||
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");
|
||||
if (IS_ERR(data->vcc_reg)) {
|
||||
dev_err(&client->dev,
|
||||
|
|
Loading…
Reference in a new issue