[PATCH v4 19/21] drivers/of: Support adding sub-tree

Benjamin Herrenschmidt benh at kernel.crashing.org
Thu May 14 17:29:04 AEST 2015


> So I would have to do a special case on unplug:
> 
> 	if (slot->dt_is_overlay) /* set to false at boot */
> 		remove_subtree_myself();
> 	else
> 		undo_overlay(slot->overlay);

Of course I just inverted the polarity of the if () in the example :-)

But you get the idea...




More information about the Linuxppc-dev mailing list