From: Pantelis Antoniou Date: Wed, 29 Oct 2014 08:40:37 +0000 (+0200) Subject: spi/of: Create new device registration method and accessors X-Git-Tag: omap-for-v3.19/fixes-rc1~127^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aff5e3f89a0b07e7edf9243f913378cc27e4110d;p=pandora-kernel.git spi/of: Create new device registration method and accessors Dynamically inserting spi device nodes requires the use of a single device registration method. Refactor the existing of_register_spi_devices() to split out the core functionality for a single device into a separate function; of_register_spi_device(). This function will be used by the OF_DYNAMIC overlay code to make live modifications to the tree. Methods to lookup a device/master using a device node are added as well, of_find_spi_master_by_node() & of_find_spi_device_by_node(). Signed-off-by: Pantelis Antoniou [grant.likely] Split patch into two pieces for clarity Signed-off-by: Grant Likely Reviewed-by: Mark Brown Cc: --- Reading git-diff-tree failed