提交 750bd8b9 编写于 作者: J Julia Lawall 提交者: Wolfram Sang

i2c: mpc: use of_property_read_bool

Use of_property_read_bool to check for the existence of a property.
Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
上级 d982d665
......@@ -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",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册