aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Brugger <[email protected]>2023-02-09 17:24:03 +0100
committerMatthias Brugger <[email protected]>2023-03-06 14:35:45 +0100
commit2ba4e3bd65213f3eae75fcd316ae38d4286d333e (patch)
tree38a71b3659685653efcc7eff8c87f713ea60f2eb
parent549053b69c54aecc6f44ddefe6c245a35f162cf4 (diff)
soc: mediatek: mtk-svs: delete node name check
The function svs_add_device_link is called only internally from the SoC specific probe functions. We don't need to check if the node_name is null because that would mean that we have a buggy SoC probe function in the first place. Reviewed-by: Roger Lu <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Matthias Brugger <[email protected]>
-rw-r--r--drivers/soc/mediatek/mtk-svs.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/soc/mediatek/mtk-svs.c b/drivers/soc/mediatek/mtk-svs.c
index 299f580847bd..a7eb019b5157 100644
--- a/drivers/soc/mediatek/mtk-svs.c
+++ b/drivers/soc/mediatek/mtk-svs.c
@@ -2027,11 +2027,6 @@ static struct device *svs_add_device_link(struct svs_platform *svsp,
struct device *dev;
struct device_link *sup_link;
- if (!node_name) {
- dev_err(svsp->dev, "node name cannot be null\n");
- return ERR_PTR(-EINVAL);
- }
-
dev = svs_get_subsys_device(svsp, node_name);
if (IS_ERR(dev))
return dev;