aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Olsson <mikael.olsson@arm.com>2023-11-14 10:42:46 +0100
committerMikael Olsson <mikael.olsson@arm.com>2023-11-14 14:22:50 +0100
commitc4ec925d6dac8a6c9748a239aa3ea44c0396cc6d (patch)
tree017886cea38e2fd4af147f29f8d90c18ab54cdc2
parent404a536f84d7ccebd5e2a09633dba9d0c2eb67bb (diff)
downloadethos-u-linux-driver-stack-c4ec925d6dac8a6c9748a239aa3ea44c0396cc6d.tar.gz
Fix device id data ptr using 0 instead of NULL
In some of the kernel modules, 0 is used instead of NULL to indicate that there is no data in the of_device_id struct. These instances have now been replaced with NULL instead. Change-Id: I14f4aabf266bb5144107e101006e257bb7876782 Signed-off-by: Mikael Olsson <mikael.olsson@arm.com>
-rw-r--r--remoteproc/corstone1000_es_reset.c2
-rw-r--r--remoteproc/juno_fpga_reset.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/remoteproc/corstone1000_es_reset.c b/remoteproc/corstone1000_es_reset.c
index bda57fe..4438c93 100644
--- a/remoteproc/corstone1000_es_reset.c
+++ b/remoteproc/corstone1000_es_reset.c
@@ -139,7 +139,7 @@ static int cs1k_es_reset_remove(struct platform_device *pdev)
}
static const struct of_device_id cs1k_es_reset_match[] = {
- { .compatible = "arm,cs1k_es_rst", .data = 0 },
+ { .compatible = "arm,cs1k_es_rst", .data = NULL },
{ /* sentinel */ },
};
diff --git a/remoteproc/juno_fpga_reset.c b/remoteproc/juno_fpga_reset.c
index 901d1ca..6e90304 100644
--- a/remoteproc/juno_fpga_reset.c
+++ b/remoteproc/juno_fpga_reset.c
@@ -111,7 +111,7 @@ static struct reset_control_ops juno_fpga_reset_ops = {
};
static const struct of_device_id juno_fpga_reset_match[] = {
- { .compatible = "arm,mali_fpga_sysctl", .data = 0 },
+ { .compatible = "arm,mali_fpga_sysctl", .data = NULL },
{ /* sentinel */ },
};