FreeBSD/sys/dev/extres/clk/clk.c
/*
 * Register clock object into clock domain hierarchy.
 */
Register clock object into clock domain hierarchy.
Register clock object into clock domain hierarchy .
struct clknode *
clknode_register(struct clkdom * clkdom, struct clknode *clknode)
{
	int rv;
	rv = CLKNODE_INIT(clknode, clknode_get_device(clknode));
	if (rv != 0) {
		printf(" CLKNODE_INIT failed: %d\n", rv);
		return (NULL);
	}
	TAILQ_INSERT_TAIL(&clkdom->clknode_list, clknode, clkdom_link);
	return (clknode);
}
struct clknode * clknode_register ( struct clkdom * clkdom , struct clknode * clknode ) { int rv ; rv = CLKNODE_INIT ( clknode , clknode_get_device ( clknode ) ) ; if ( rv != 0 ) { printf ( " \n " , rv ) ; return ( NULL ) ; } TAILQ_INSERT_TAIL ( & clkdom -> clknode_list , clknode , clkdom_link ) ; return ( clknode ) ; }
Register clock object into clock domain hierarchy.
Register clock object into clock domain hierarchy .