diff options
author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-10-08 18:09:47 +0200 |
---|---|---|
committer | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2024-11-24 16:03:50 +0100 |
commit | 50b9d43e6ceaaaa59c54c95aca5f8dfc862fe48e (patch) | |
tree | 02cadb05218c4cfa6d7e12e3c1c20ae60972cf6a | |
parent | 9f16d5e6f220661f73b36a4be1b21575651d8833 (diff) | |
download | linux-50b9d43e6ceaaaa59c54c95aca5f8dfc862fe48e.tar.gz linux-50b9d43e6ceaaaa59c54c95aca5f8dfc862fe48e.tar.bz2 linux-50b9d43e6ceaaaa59c54c95aca5f8dfc862fe48e.zip |
i2c: qup: use generic device property accessors
There's no reason for this driver to use OF-specific property helpers.
Drop the last one in favor of the generic variant and no longer include
of.h.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
-rw-r--r-- | drivers/i2c/busses/i2c-qup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-qup.c b/drivers/i2c/busses/i2c-qup.c index 86ec391616b0..da20b4487c9a 100644 --- a/drivers/i2c/busses/i2c-qup.c +++ b/drivers/i2c/busses/i2c-qup.c @@ -17,9 +17,9 @@ #include <linux/interrupt.h> #include <linux/io.h> #include <linux/module.h> -#include <linux/of.h> #include <linux/platform_device.h> #include <linux/pm_runtime.h> +#include <linux/property.h> #include <linux/scatterlist.h> /* QUP Registers */ @@ -1683,7 +1683,7 @@ static int qup_i2c_probe(struct platform_device *pdev) } } - if (of_device_is_compatible(pdev->dev.of_node, "qcom,i2c-qup-v1.1.1")) { + if (device_is_compatible(&pdev->dev, "qcom,i2c-qup-v1.1.1")) { qup->adap.algo = &qup_i2c_algo; qup->adap.quirks = &qup_i2c_quirks; is_qup_v1 = true; |