ASoC: sgtl5000: Read SGTL5000_CHIP_ID in i2c_probe()
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 10 May 2013 00:15:46 +0000 (21:15 -0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 12 May 2013 16:50:02 +0000 (20:50 +0400)
The usual place for reading chip ID is inside i2c_probe, so move it there and
also convert it to regmap.

sgtl5000_enable_regulators() needs to read the chip revision, so keep the
revision check there.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

No differences found