Thread (9 messages) 9 messages, 2 authors, 2021-05-14

Re: [PATCH v10 2/4] ASoC: Add Rockchip rk817 audio CODEC support

From: Mark Brown <broonie@kernel.org>
Date: 2021-05-14 17:50:40
Also in: alsa-devel, linux-rockchip

On Fri, May 14, 2021 at 12:19:38PM -0500, Chris Morgan wrote:
+static int rk817_codec_parse_dt_property(struct device *dev,
+					 struct rk817_codec_priv *rk817)
+{
+	struct device_node *node = dev->parent->of_node;
+
+	if (!node) {
+		dev_err(dev, "%s() dev->parent->of_node is NULL\n",
+			__func__);
+		return -ENODEV;
+	}
There's no need to fail the probe here, you won't be able to read any DT
properties but that shouldn't stop the driver binding.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help