summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/tps6594-spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mfd/tps6594-spi.c')
-rw-r--r--drivers/mfd/tps6594-spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/tps6594-spi.c b/drivers/mfd/tps6594-spi.c
index f4b4f37f95..24b72847e3 100644
--- a/drivers/mfd/tps6594-spi.c
+++ b/drivers/mfd/tps6594-spi.c
@@ -98,7 +98,7 @@ static int tps6594_spi_probe(struct spi_device *spi)
spi_set_drvdata(spi, tps);
tps->dev = dev;
- tps->reg = spi->chip_select;
+ tps->reg = spi_get_chipselect(spi, 0);
tps->irq = spi->irq;
tps->regmap = devm_regmap_init(dev, NULL, spi, &tps6594_spi_regmap_config);