]>
Commit | Line | Data |
---|---|---|
88c4f4d9 GKH |
1 | From ca21f851cc9643af049226d57fabc3c883ea648e Mon Sep 17 00:00:00 2001 |
2 | From: Russell King <rmk+kernel@armlinux.org.uk> | |
3 | Date: Tue, 11 Jun 2019 17:48:18 +0100 | |
4 | Subject: i2c: acorn: fix i2c warning | |
5 | ||
6 | From: Russell King <rmk+kernel@armlinux.org.uk> | |
7 | ||
8 | commit ca21f851cc9643af049226d57fabc3c883ea648e upstream. | |
9 | ||
10 | The Acorn i2c driver (for RiscPC) triggers the "i2c adapter has no name" | |
11 | warning in the I2C core driver, resulting in the RTC being inaccessible. | |
12 | Fix this. | |
13 | ||
14 | Fixes: 2236baa75f70 ("i2c: Sanity checks on adapter registration") | |
15 | Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> | |
16 | Signed-off-by: Wolfram Sang <wsa@the-dreams.de> | |
17 | Cc: stable@kernel.org | |
18 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
19 | ||
20 | --- | |
21 | drivers/i2c/busses/i2c-acorn.c | 1 + | |
22 | 1 file changed, 1 insertion(+) | |
23 | ||
24 | --- a/drivers/i2c/busses/i2c-acorn.c | |
25 | +++ b/drivers/i2c/busses/i2c-acorn.c | |
26 | @@ -81,6 +81,7 @@ static struct i2c_algo_bit_data ioc_data | |
27 | ||
28 | static struct i2c_adapter ioc_ops = { | |
29 | .nr = 0, | |
30 | + .name = "ioc", | |
31 | .algo_data = &ioc_data, | |
32 | }; | |
33 |