projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27f255a
)
gpio: rk8xx: print probe successful info
author
chenjh
<chenjh@rock-chips.com>
Thu, 27 Apr 2017 12:01:50 +0000
(20:01 +0800)
committer
Huang, Tao
<huangtao@rock-chips.com>
Fri, 28 Apr 2017 09:43:16 +0000
(17:43 +0800)
because gpio framework doesn't print any related info
Change-Id: I2325270027210432cd31d1cec6caf19770363705
Signed-off-by: chenjh <chenjh@rock-chips.com>
drivers/gpio/gpio-rk8xx.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-rk8xx.c
b/drivers/gpio/gpio-rk8xx.c
index 2d41d2aad463eca4c578c21fb631c159b59b12db..6adc8d408c4a0a65cfd17eeebfd22709a97aa637 100644
(file)
--- a/
drivers/gpio/gpio-rk8xx.c
+++ b/
drivers/gpio/gpio-rk8xx.c
@@
-221,8
+221,13
@@
static int rk8xx_gpio_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, gi);
ret = gpiochip_add(&gi->gpio_chip);
- if (ret)
+ if (ret)
{
dev_err(&pdev->dev, "register rk8xx gpiochip fail: %d\n", ret);
+ return ret;
+ }
+
+ dev_info(&pdev->dev, "register rk%lx gpio successful\n",
+ rk8xx->variant);
return ret;
}