Commit Graph

3 Commits

Author SHA1 Message Date
Sagar Dharia 761e4e57cd of: slimbus: Avoid memory leak of boardinfo array
boardinfo structure array populates slaves on the slimbus.
Framework populates devices specified by the boardinfo array and
the array is not referenced later. Also, while reallocating the
array to populate slaves in the loop, make sure that the existing
array is not leaked if reallocation fails during new slave addition.

Change-Id: Ib7e289ee56c57cad2962529270d55bf4107961df
Signed-off-by: Sagar Dharia <sdharia@codeaurora.org>
2013-09-04 16:50:02 -07:00
Kiran Kandi cc17c16fd6 slimbus: Initiialize device tree node of slimbus slave devices
Slimbus slave device drivers need slimbus slave device tree node to
accesses the properties of the slave device node.

Change-Id: Idb40b42eeaa1221d5ebce5a7c4e6766d615568a0
Signed-off-by: Kiran Kandi <kkandi@codeaurora.org>
2013-09-04 15:06:04 -07:00
Sagar Dharia 85f22c5fba slimbus: Add Device Tree support for SLIMBUS
Slave devices can be added by listing them as child of a SLIMBUS
controller of_node in the Device Tree.
It is required to specify elemental address, and name of the slave
device.

Change-Id: Ie1b2f8fe58988f0237547a84f1bbb14ce4733eff
Signed-off-by: Sagar Dharia <sdharia@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
2013-09-04 14:49:57 -07:00