Thread (8 messages) 8 messages, 5 authors, 2017-08-14

Re: [PATCH v2] ravb: add wake-on-lan support via magic packet

From: Andrew Lunn <andrew@lunn.ch>
Date: 2017-07-30 17:07:41
Also in: linux-renesas-soc

Hi Niklas
quoted hunk ↗ jump to hunk
@@ -2041,6 +2073,11 @@ static int ravb_probe(struct platform_device *pdev)
 
 	priv->chip_id = chip_id;
 
+	/* Get clock, if not found that's OK but Wake-On-Lan is unavailable */
+	priv->clk = devm_clk_get(&pdev->dev, NULL);
+	if (IS_ERR(priv->clk))
+		priv->clk = NULL;
Can you get EPROBE_DEFER returned?

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