armbian_build/patch/kernel/archive/sunxi-6.1/patches.armbian/mfd-sunxi-ac200-fix-error-initialization.patch
The-going b7ab460983
Move sunxi legacy to 5.15.y, current to 6.1.y and edge to 6.2.y (#4890)
* sunxi-6.1: rebase to v6.1.14, reexport patches megous

* sunxi-6.1: rename fixes patches

* sunxi-6.1: reexport armbian patches

* sunxi-6.1: fix the series.conf file to the current state

* sunxi-6.1: switch edge to v6.1.14

* Adjust sunxi to 5.15 / 6.1 / 6.2

- change configs
- adjust broken patches
- disable patch that only changes /readme.md and it has issues

---------

Co-authored-by: Igor Pečovnik <igor@armbian.com>
2023-03-03 22:13:49 +01:00

35 lines
981 B
Diff

From eab277e9ca1f5558dbbf9820dbf6cf4edf4d4c39 Mon Sep 17 00:00:00 2001
From: The-going <48602507+The-going@users.noreply.github.com>
Date: Tue, 28 Feb 2023 13:39:51 +0300
Subject: [PATCH] mfd: sunxi-ac200: fix error initialization
---
drivers/mfd/sunxi-ac200.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/mfd/sunxi-ac200.c b/drivers/mfd/sunxi-ac200.c
index 368a54587..b784a82f3 100644
--- a/drivers/mfd/sunxi-ac200.c
+++ b/drivers/mfd/sunxi-ac200.c
@@ -144,7 +144,7 @@ static int ac200_i2c_probe(struct i2c_client *i2c,
return 0;
}
-static int ac200_i2c_remove(struct i2c_client *i2c)
+static void ac200_i2c_remove(struct i2c_client *i2c)
{
struct ac200_dev *ac200 = i2c_get_clientdata(i2c);
@@ -152,8 +152,6 @@ static int ac200_i2c_remove(struct i2c_client *i2c)
mfd_remove_devices(&i2c->dev);
regmap_del_irq_chip(i2c->irq, ac200->regmap_irqc);
-
- return 0;
}
static const struct i2c_device_id ac200_ids[] = {
--
2.35.3