2019-09-02 13:05:44

by Michal Simek

[permalink] [raw]
Subject: [PATCH] power: reset: gpio-restart: Fix typo when gpio reset is not found

Trivial patch which just corrects error message.

Fixes: 371bb20d6927 ("power: Add simple gpio-restart driver")
Signed-off-by: Michal Simek <[email protected]>
---

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

diff --git a/drivers/power/reset/gpio-restart.c b/drivers/power/reset/gpio-restart.c
index 2880cd5ae0d2..308ca9d9d276 100644
--- a/drivers/power/reset/gpio-restart.c
+++ b/drivers/power/reset/gpio-restart.c
@@ -65,7 +65,7 @@ static int gpio_restart_probe(struct platform_device *pdev)
gpio_restart->reset_gpio = devm_gpiod_get(&pdev->dev, NULL,
open_source ? GPIOD_IN : GPIOD_OUT_LOW);
if (IS_ERR(gpio_restart->reset_gpio)) {
- dev_err(&pdev->dev, "Could net get reset GPIO\n");
+ dev_err(&pdev->dev, "Could not get reset GPIO\n");
return PTR_ERR(gpio_restart->reset_gpio);
}

--
2.17.1


2019-09-02 18:39:05

by Sebastian Reichel

[permalink] [raw]
Subject: Re: [PATCH] power: reset: gpio-restart: Fix typo when gpio reset is not found

Hi,

On Mon, Sep 02, 2019 at 03:00:40PM +0200, Michal Simek wrote:
> Trivial patch which just corrects error message.
>
> Fixes: 371bb20d6927 ("power: Add simple gpio-restart driver")
> Signed-off-by: Michal Simek <[email protected]>
> ---

Thanks, queued.

-- Sebastian

>
> drivers/power/reset/gpio-restart.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/power/reset/gpio-restart.c b/drivers/power/reset/gpio-restart.c
> index 2880cd5ae0d2..308ca9d9d276 100644
> --- a/drivers/power/reset/gpio-restart.c
> +++ b/drivers/power/reset/gpio-restart.c
> @@ -65,7 +65,7 @@ static int gpio_restart_probe(struct platform_device *pdev)
> gpio_restart->reset_gpio = devm_gpiod_get(&pdev->dev, NULL,
> open_source ? GPIOD_IN : GPIOD_OUT_LOW);
> if (IS_ERR(gpio_restart->reset_gpio)) {
> - dev_err(&pdev->dev, "Could net get reset GPIO\n");
> + dev_err(&pdev->dev, "Could not get reset GPIO\n");
> return PTR_ERR(gpio_restart->reset_gpio);
> }
>
> --
> 2.17.1
>


Attachments:
(No filename) (1.02 kB)
signature.asc (849.00 B)
Download all attachments