Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: hyperbus: Use of_property_present() for non-boolean properties

The use of of_property_read_bool() for non-boolean properties is
deprecated in favor of of_property_present() when testing for property
presence.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>

authored by

Rob Herring (Arm) and committed by
Miquel Raynal
cd97c961 29b94158

+1 -1
+1 -1
drivers/mtd/hyperbus/hbmc-am654.c
··· 176 176 if (ret) 177 177 goto put_node; 178 178 179 - if (of_property_read_bool(dev->of_node, "mux-controls")) { 179 + if (of_property_present(dev->of_node, "mux-controls")) { 180 180 struct mux_control *control = devm_mux_control_get(dev, NULL); 181 181 182 182 if (IS_ERR(control)) {