summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-ath79.c
diff options
context:
space:
mode:
authorzhong jiang <zhongjiang@huawei.com>2018-07-24 19:57:43 +0800
committerLinus Walleij <linus.walleij@linaro.org>2018-07-29 23:34:54 +0200
commit23211b08c367bc9b22469c1460f5dbb67142e06d (patch)
tree52db8d741b7d53b3061ee24c79c58056a19a4990 /drivers/gpio/gpio-ath79.c
parent2bee9e067cad4446928cbdcdaf788be463e74240 (diff)
downloadlinux-23211b08c367bc9b22469c1460f5dbb67142e06d.tar.bz2
gpio: fix meaningless return expression
Fix the following sparse error: drivers/gpio/gpio-ath79.c:54:16: error: return expression in void function Signed-off-by: zhong jiang <zhongjiang@huawei.com> Acked-by: Alban Bedel <albeu@free.fr> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-ath79.c')
-rw-r--r--drivers/gpio/gpio-ath79.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-ath79.c b/drivers/gpio/gpio-ath79.c
index 684e9d6d6623..0a553d676042 100644
--- a/drivers/gpio/gpio-ath79.c
+++ b/drivers/gpio/gpio-ath79.c
@@ -51,7 +51,7 @@ static u32 ath79_gpio_read(struct ath79_gpio_ctrl *ctrl, unsigned reg)
static void ath79_gpio_write(struct ath79_gpio_ctrl *ctrl,
unsigned reg, u32 val)
{
- return writel(val, ctrl->base + reg);
+ writel(val, ctrl->base + reg);
}
static bool ath79_gpio_update_bits(