From 052e50047acb498f0f45612e7477d4b5291c7989 Mon Sep 17 00:00:00 2001 From: Santosh Mardi Date: Mon, 24 May 2021 12:20:39 +0530 Subject: [PATCH] drivers: soc: qcom: scmi_clients: add zero initialized entry in id table SCMI core framework match id function expects zero initialized entry at the end of id_match table. Add zero initialized entries in both memlat and plh scmi client drivers. Change-Id: I268ffc48fa07a42a052ea45c160f1e2ab21994ff Signed-off-by: Santosh Mardi --- drivers/soc/qcom/memlat_scmi.c | 3 ++- drivers/soc/qcom/plh_scmi.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/soc/qcom/memlat_scmi.c b/drivers/soc/qcom/memlat_scmi.c index 647b1bf79515..6d918a1c9a1d 100644 --- a/drivers/soc/qcom/memlat_scmi.c +++ b/drivers/soc/qcom/memlat_scmi.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2020, The Linux Foundation. All rights reserved. + * Copyright (c) 2020 - 2021, The Linux Foundation. All rights reserved. */ #include @@ -26,6 +26,7 @@ static int scmi_memlat_probe(struct scmi_device *sdev) static const struct scmi_device_id scmi_id_table[] = { { SCMI_PROTOCOL_MEMLAT }, + { }, }; MODULE_DEVICE_TABLE(scmi, scmi_id_table); diff --git a/drivers/soc/qcom/plh_scmi.c b/drivers/soc/qcom/plh_scmi.c index 67ddad6413a5..e655f3c85fe9 100644 --- a/drivers/soc/qcom/plh_scmi.c +++ b/drivers/soc/qcom/plh_scmi.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2020, The Linux Foundation. All rights reserved. + * Copyright (c) 2020 - 2021, The Linux Foundation. All rights reserved. */ #include @@ -26,6 +26,7 @@ static int scmi_plh_probe(struct scmi_device *sdev) static const struct scmi_device_id scmi_id_table[] = { { SCMI_PROTOCOL_PLH }, + { }, }; MODULE_DEVICE_TABLE(scmi, scmi_id_table);