mfd: arizona: Use correct type ID for device tree config
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Fri, 2 Oct 2015 12:29:15 +0000 (13:29 +0100)
committerLee Jones <lee.jones@linaro.org>
Fri, 30 Oct 2015 17:20:30 +0000 (17:20 +0000)
commit2e44e28ad2628cd29a4829ffab06fe7e3b79469c
tree9735e103f5685ec5c0787d7377b1caaacc6002da
parentb61c1ec058dabdcbddad7436bb4c009a8fa65b02
mfd: arizona: Use correct type ID for device tree config

In the case of a device tree config the code uses the device ID
from the DT entry to check which codec is required but when storing
the ID into struct arizona it was always using the non-DT SPI device
table to get an ID.

This patch changes the code to store the correct ID into struct arizona.

Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/arizona-i2c.c
drivers/mfd/arizona-spi.c