From c4ec925d6dac8a6c9748a239aa3ea44c0396cc6d Mon Sep 17 00:00:00 2001 From: Mikael Olsson Date: Tue, 14 Nov 2023 10:42:46 +0100 Subject: 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 --- remoteproc/corstone1000_es_reset.c | 2 +- remoteproc/juno_fpga_reset.c | 2 +- 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 */ }, }; -- cgit v1.2.1