gpio: rk8xx: print probe successful info
authorchenjh <chenjh@rock-chips.com>
Thu, 27 Apr 2017 12:01:50 +0000 (20:01 +0800)
committerHuang, 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

index 2d41d2aad463eca4c578c21fb631c159b59b12db..6adc8d408c4a0a65cfd17eeebfd22709a97aa637 100644 (file)
@@ -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;
 }