From 91a3b9bf4618f441c96209731d504b1b73eb3a32 Mon Sep 17 00:00:00 2001 From: chenjh Date: Thu, 27 Apr 2017 20:01:50 +0800 Subject: [PATCH] gpio: rk8xx: print probe successful info because gpio framework doesn't print any related info Change-Id: I2325270027210432cd31d1cec6caf19770363705 Signed-off-by: chenjh --- drivers/gpio/gpio-rk8xx.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-rk8xx.c b/drivers/gpio/gpio-rk8xx.c index 2d41d2aad463..6adc8d408c4a 100644 --- 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; } -- 2.34.1