Skip to content

Commit 50b9d43

Browse files
Bartosz GolaszewskiWolfram Sang
authored andcommitted
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>
1 parent 9f16d5e commit 50b9d43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/i2c/busses/i2c-qup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
#include <linux/interrupt.h>
1818
#include <linux/io.h>
1919
#include <linux/module.h>
20-
#include <linux/of.h>
2120
#include <linux/platform_device.h>
2221
#include <linux/pm_runtime.h>
22+
#include <linux/property.h>
2323
#include <linux/scatterlist.h>
2424

2525
/* QUP Registers */
@@ -1683,7 +1683,7 @@ static int qup_i2c_probe(struct platform_device *pdev)
16831683
}
16841684
}
16851685

1686-
if (of_device_is_compatible(pdev->dev.of_node, "qcom,i2c-qup-v1.1.1")) {
1686+
if (device_is_compatible(&pdev->dev, "qcom,i2c-qup-v1.1.1")) {
16871687
qup->adap.algo = &qup_i2c_algo;
16881688
qup->adap.quirks = &qup_i2c_quirks;
16891689
is_qup_v1 = true;

0 commit comments

Comments
 (0)