From: Timur Tabi Date: Fri, 2 Dec 2011 01:52:47 +0000 (-0600) Subject: ASoC: fsl/powerpc: don't rely on the cell-index property X-Git-Tag: v3.3-rc1~14^2~229 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6132725eac521b89dee3d58df3c6d04a1e50844c;p=pandora-kernel.git ASoC: fsl/powerpc: don't rely on the cell-index property Instead of using the 'cell-index' property in the I2C adapter node to determine the adapter number, just query the i2c_adapter object directly. Previously, the I2C nodes always appeared in cell-index order, so the dynamic numbering coincided with the cell-index property. With commit ab827d97 ("powerpc/85xx: Rework P1022DS device tree"), the I2C nodes are unintentionally reversed in the device tree, and so the machine driver guesses the wrong I2C adapter number. Signed-off-by: Timur Tabi Signed-off-by: Mark Brown --- Reading git-diff-tree failed