]> git.itanic.dy.fi Git - linux-stable/commit
watchdog: marvell_gti_wdt: Fix error code in probe()
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 7 Sep 2023 09:53:15 +0000 (12:53 +0300)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 29 Oct 2023 18:45:03 +0000 (19:45 +0100)
commit4b2b39f9395bc66c616d8d5a83642950fc3719b1
treecb586be3dd4483db5a355587af62a68e3f5f80d2
parentdb7673e6d5783a8664840b9218f58b5b836603ce
watchdog: marvell_gti_wdt: Fix error code in probe()

This error path accidentally returns success.  Return -EINVAL instead.

Fixes: ef9e7fe2c890 ("Watchdog: Add marvell GTI watchdog driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Bharat Bhushan <bbhushan2@marvell.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/af326fd7-ac71-43a1-b7de-81779b61d242@moroto.mountain
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/marvell_gti_wdt.c