mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
i2c: acorn: fix i2c warning
commitca21f851ccupstream. The Acorn i2c driver (for RiscPC) triggers the "i2c adapter has no name" warning in the I2C core driver, resulting in the RTC being inaccessible. Fix this. Fixes:2236baa75f("i2c: Sanity checks on adapter registration") Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Cc: stable@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d0365cb720
commit
70ea54f744
@@ -83,6 +83,7 @@ static struct i2c_algo_bit_data ioc_data = {
|
||||
|
||||
static struct i2c_adapter ioc_ops = {
|
||||
.nr = 0,
|
||||
.name = "ioc",
|
||||
.algo_data = &ioc_data,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user