[PATCH linux] gpio/aspeed: Forward port GPIO driver

Joel Stanley joel at jms.id.au
Tue May 24 12:10:39 AEST 2016


This updates the driver to build on 4.7:

  - 58383c78425e4ee1c077253cf297b641c861c02e renamed dev to parent

Signed-off-by: Joel Stanley <joel at jms.id.au>
---
Hey Jeremy,

I've made mistakes in the past so this is a sanity check of a trivial change.
Please ack if you think this look okay :)

Cheers,

Joel

 drivers/gpio/gpio-aspeed.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-aspeed.c b/drivers/gpio/gpio-aspeed.c
index 152b7d4484d1..aa4573f03cb6 100644
--- a/drivers/gpio/gpio-aspeed.c
+++ b/drivers/gpio/gpio-aspeed.c
@@ -389,7 +389,7 @@ static int __init aspeed_gpio_probe(struct platform_device *pdev)
 
 	gpio->chip.ngpio = ARRAY_SIZE(aspeed_gpio_banks) * 32;
 
-	gpio->chip.dev = &pdev->dev;
+	gpio->chip.parent = &pdev->dev;
 	gpio->chip.direction_input = aspeed_gpio_dir_in;
 	gpio->chip.direction_output = aspeed_gpio_dir_out;
 	gpio->chip.get = aspeed_gpio_get;
-- 
2.8.1



More information about the openbmc mailing list