From: Dmitry Torokhov Date: Tue, 28 Feb 2017 19:50:56 +0000 (-0800) Subject: Input: ad7879 - try parsing properties on non-DT systems X-Git-Tag: v4.14-rc1~4^2~36^2~134 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a97c3d16b9e087a1741c527ecd8cbb4039d609f;p=platform%2Fkernel%2Flinux-rpi.git Input: ad7879 - try parsing properties on non-DT systems We have switched the driver to use generic device properties API, so there is no need to check for presence of DT node before trying parse properties. Acked-by: Michael Hennerich Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/touchscreen/ad7879.c b/drivers/input/touchscreen/ad7879.c index 7118f61..c415614 100644 --- a/drivers/input/touchscreen/ad7879.c +++ b/drivers/input/touchscreen/ad7879.c @@ -560,11 +560,10 @@ int ad7879_probe(struct device *dev, struct regmap *regmap, ts->averaging = pdata->averaging; ts->pen_down_acc_interval = pdata->pen_down_acc_interval; ts->median = pdata->median; - } else if (dev->of_node) { - ad7879_parse_dt(dev, ts); } else { - dev_err(dev, "No platform data\n"); - return -EINVAL; + err = ad7879_parse_dt(dev, ts); + if (err) + return err; } input_dev = devm_input_allocate_device(dev);