]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - queue-4.9/i2c-acorn-fix-i2c-warning.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / queue-4.9 / i2c-acorn-fix-i2c-warning.patch
CommitLineData
96f81b03
GKH
1From ca21f851cc9643af049226d57fabc3c883ea648e Mon Sep 17 00:00:00 2001
2From: Russell King <rmk+kernel@armlinux.org.uk>
3Date: Tue, 11 Jun 2019 17:48:18 +0100
4Subject: i2c: acorn: fix i2c warning
5
6From: Russell King <rmk+kernel@armlinux.org.uk>
7
8commit ca21f851cc9643af049226d57fabc3c883ea648e upstream.
9
10The Acorn i2c driver (for RiscPC) triggers the "i2c adapter has no name"
11warning in the I2C core driver, resulting in the RTC being inaccessible.
12Fix this.
13
14Fixes: 2236baa75f70 ("i2c: Sanity checks on adapter registration")
15Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
16Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
17Cc: stable@kernel.org
18Signed-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@@ -83,6 +83,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