svn commit: r308441 - head/sys/arm/allwinner/clk

Emmanuel Vadot manu at FreeBSD.org
Tue Nov 8 10:06:44 UTC 2016


Author: manu
Date: Tue Nov  8 10:06:43 2016
New Revision: 308441
URL: https://svnweb.freebsd.org/changeset/base/308441

Log:
  Do not fail to attach the clock if we cannot set the assigned parents as this
  property isn't mandatory.
  
  MFC after:	2 weeks

Modified:
  head/sys/arm/allwinner/clk/aw_ahbclk.c

Modified: head/sys/arm/allwinner/clk/aw_ahbclk.c
==============================================================================
--- head/sys/arm/allwinner/clk/aw_ahbclk.c	Tue Nov  8 10:05:11 2016	(r308440)
+++ head/sys/arm/allwinner/clk/aw_ahbclk.c	Tue Nov  8 10:06:43 2016	(r308441)
@@ -351,7 +351,7 @@ aw_ahbclk_attach(device_t dev)
 	}
 
 	error = clk_set_assigned(dev, node);
-	if (error != 0) {
+	if (error != 0 && error != ENOENT) {
 		device_printf(dev, "cannot set assigned parents: %d\n", error);
 		goto fail;
 	}


More information about the svn-src-head mailing list