diff options
Diffstat (limited to 'drivers/gpio/gpio-74x164.c')
-rw-r--r-- | drivers/gpio/gpio-74x164.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpio/gpio-74x164.c b/drivers/gpio/gpio-74x164.c index 464be961f605..721607904d0a 100644 --- a/drivers/gpio/gpio-74x164.c +++ b/drivers/gpio/gpio-74x164.c | |||
@@ -137,7 +137,7 @@ static int gen_74x164_probe(struct spi_device *spi) | |||
137 | 137 | ||
138 | mutex_init(&chip->lock); | 138 | mutex_init(&chip->lock); |
139 | 139 | ||
140 | dev_set_drvdata(&spi->dev, chip); | 140 | spi_set_drvdata(spi, chip); |
141 | 141 | ||
142 | chip->spi = spi; | 142 | chip->spi = spi; |
143 | 143 | ||
@@ -176,7 +176,7 @@ static int gen_74x164_probe(struct spi_device *spi) | |||
176 | return ret; | 176 | return ret; |
177 | 177 | ||
178 | exit_destroy: | 178 | exit_destroy: |
179 | dev_set_drvdata(&spi->dev, NULL); | 179 | spi_set_drvdata(spi, NULL); |
180 | mutex_destroy(&chip->lock); | 180 | mutex_destroy(&chip->lock); |
181 | return ret; | 181 | return ret; |
182 | } | 182 | } |
@@ -186,11 +186,11 @@ static int gen_74x164_remove(struct spi_device *spi) | |||
186 | struct gen_74x164_chip *chip; | 186 | struct gen_74x164_chip *chip; |
187 | int ret; | 187 | int ret; |
188 | 188 | ||
189 | chip = dev_get_drvdata(&spi->dev); | 189 | chip = spi_get_drvdata(spi); |
190 | if (chip == NULL) | 190 | if (chip == NULL) |
191 | return -ENODEV; | 191 | return -ENODEV; |
192 | 192 | ||
193 | dev_set_drvdata(&spi->dev, NULL); | 193 | spi_set_drvdata(spi, NULL); |
194 | 194 | ||
195 | ret = gpiochip_remove(&chip->gpio_chip); | 195 | ret = gpiochip_remove(&chip->gpio_chip); |
196 | if (!ret) | 196 | if (!ret) |