Skip to content

Commit

Permalink
PM / devfreq: imx-bus: use NULL to pass a null pointer rather than zero
Browse files Browse the repository at this point in the history
The 3rd argument to the function of_get_property is a pointer and it is
being passed using 0. Use NULL instead.

Cleans up sparse warning:
warning: Using plain integer as NULL pointer

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
  • Loading branch information
Colin Ian King authored and Chanwoo Choi committed Jul 15, 2022
1 parent c9deb74 commit 2472934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/devfreq/imx-bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ static int imx_bus_init_icc(struct device *dev)
struct imx_bus *priv = dev_get_drvdata(dev);
const char *icc_driver_name;

if (!of_get_property(dev->of_node, "#interconnect-cells", 0))
if (!of_get_property(dev->of_node, "#interconnect-cells", NULL))
return 0;
if (!IS_ENABLED(CONFIG_INTERCONNECT_IMX)) {
dev_warn(dev, "imx interconnect drivers disabled\n");
Expand Down

0 comments on commit 2472934

Please sign in to comment.