Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0794d14e authored by Hareesh Gundu's avatar Hareesh Gundu
Browse files

drivers: llcc: Remove error message in llcc_slice_getd()



Don’t dump error logs incase of LLCC DT is properties
are not defined. These are non-fatal which are not
required in kernel logs when LLCC is not enabled.

Change-Id: I842dff07c7d5c958998535392dca57ed1f92cbdc
Signed-off-by: default avatarHareesh Gundu <hareeshg@codeaurora.org>
parent 4719c01d
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -145,17 +145,8 @@ struct llcc_slice_desc *llcc_slice_getd(struct device *dev, const char *name)
	const char *slice_name;
	struct property *prop;

	if (!np) {
		dev_err(dev, "%s() currently only supports DT\n", __func__);
	if (!np || !of_get_property(np, "cache-slice-names", NULL))
		return ERR_PTR(-ENOENT);
	}

	if (!of_get_property(np, "cache-slice-names", NULL)) {
		dev_err(dev,
			"%s() requires a \"cache-slice-names\" property\n",
			__func__);
		return ERR_PTR(-ENOENT);
	}

	of_property_for_each_string(np, "cache-slice-names", prop, slice_name) {
		if (!strcmp(name, slice_name))