diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2022-06-23 21:00:54 +0300 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2022-07-15 05:40:08 +0300 |
commit | 2472934e36b51bbdf0a7cdd5e351910d9002c6ac (patch) | |
tree | 3a9308358ba289977138a1b2b04a9f608d696a12 /drivers/devfreq | |
parent | c9deb748683851737c5e4df623c3283c185cd8f0 (diff) | |
download | linux-2472934e36b51bbdf0a7cdd5e351910d9002c6ac.tar.xz |
PM / devfreq: imx-bus: use NULL to pass a null pointer rather than zero
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>
Diffstat (limited to 'drivers/devfreq')
-rw-r--r-- | drivers/devfreq/imx-bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/devfreq/imx-bus.c b/drivers/devfreq/imx-bus.c index f3f6e25053ed..f87067fc574d 100644 --- a/drivers/devfreq/imx-bus.c +++ b/drivers/devfreq/imx-bus.c @@ -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"); |