diff options
author | Jamie Iles <jamie@jamieiles.com> | 2011-05-20 02:40:14 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-05-20 02:40:14 -0400 |
commit | 4ddb8ae217ad2aae888d00d97c5160f677dd38f4 (patch) | |
tree | 1f792820775e1051a5d50a3cab967230d8d43e06 | |
parent | 8467afec5f8137fd0c13121f8a38c99c54c913f6 (diff) |
basic_mmio_gpio: convert to platform_{get,set}_drvdata()
Use the platform drvdata helpers rather than working on the struct
device itself.
Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Acked-by: Anton Vorontsov <cbouatmailru@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
-rw-r--r-- | drivers/gpio/basic_mmio_gpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/basic_mmio_gpio.c b/drivers/gpio/basic_mmio_gpio.c index e935a24f7d29..5db5de438324 100644 --- a/drivers/gpio/basic_mmio_gpio.c +++ b/drivers/gpio/basic_mmio_gpio.c | |||
@@ -296,7 +296,7 @@ static int __devinit bgpio_probe(struct platform_device *pdev) | |||
296 | else | 296 | else |
297 | bgc->gc.base = -1; | 297 | bgc->gc.base = -1; |
298 | 298 | ||
299 | dev_set_drvdata(dev, bgc); | 299 | platform_set_drvdata(pdev, bgc); |
300 | 300 | ||
301 | ret = gpiochip_add(&bgc->gc); | 301 | ret = gpiochip_add(&bgc->gc); |
302 | if (ret) | 302 | if (ret) |
@@ -307,7 +307,7 @@ static int __devinit bgpio_probe(struct platform_device *pdev) | |||
307 | 307 | ||
308 | static int __devexit bgpio_remove(struct platform_device *pdev) | 308 | static int __devexit bgpio_remove(struct platform_device *pdev) |
309 | { | 309 | { |
310 | struct bgpio_chip *bgc = dev_get_drvdata(&pdev->dev); | 310 | struct bgpio_chip *bgc = platform_get_drvdata(pdev); |
311 | 311 | ||
312 | return gpiochip_remove(&bgc->gc); | 312 | return gpiochip_remove(&bgc->gc); |
313 | } | 313 | } |