summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2016-08-05 10:56:44 +0200
committerWolfram Sang <wsa@the-dreams.de>2017-10-27 22:14:40 +0200
commit750bd8b990856ec89a3af5836c7915ea6e2dd712 (patch)
treed4a70321728bacbec159c228426aa1d5d5250b2e /drivers/i2c
parenti2c: riic: remove clock and frequency restrictions (diff)
downloadlinux-750bd8b990856ec89a3af5836c7915ea6e2dd712.tar.xz
linux-750bd8b990856ec89a3af5836c7915ea6e2dd712.zip
i2c: mpc: use of_property_read_bool
Use of_property_read_bool to check for the existence of a property. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-mpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-mpc.c b/drivers/i2c/busses/i2c-mpc.c
index 96caf378b1dc..2b221a514974 100644
--- a/drivers/i2c/busses/i2c-mpc.c
+++ b/drivers/i2c/busses/i2c-mpc.c
@@ -700,7 +700,7 @@ static int fsl_i2c_probe(struct platform_device *op)
}
}
- if (of_get_property(op->dev.of_node, "fsl,preserve-clocking", NULL)) {
+ if (of_property_read_bool(op->dev.of_node, "fsl,preserve-clocking")) {
clock = MPC_I2C_CLOCK_PRESERVE;
} else {
prop = of_get_property(op->dev.of_node, "clock-frequency",