From: chenjh Date: Thu, 27 Apr 2017 12:01:50 +0000 (+0800) Subject: gpio: rk8xx: print probe successful info X-Git-Tag: release-20171130_firefly~4^2~705 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=91a3b9bf4618f441c96209731d504b1b73eb3a32;p=firefly-linux-kernel-4.4.55.git gpio: rk8xx: print probe successful info because gpio framework doesn't print any related info Change-Id: I2325270027210432cd31d1cec6caf19770363705 Signed-off-by: chenjh --- 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; }