Skip to content
Snippets Groups Projects
Commit 0a90ef6e authored by Russell King's avatar Russell King Committed by Ben Hutchings
Browse files

i2c: acorn: fix i2c warning


commit ca21f851 upstream.

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: 2236baa7 ("i2c: Sanity checks on adapter registration")
Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 74c41ea7
No related branches found
No related tags found
No related merge requests found
...@@ -83,6 +83,7 @@ static struct i2c_algo_bit_data ioc_data = { ...@@ -83,6 +83,7 @@ static struct i2c_algo_bit_data ioc_data = {
static struct i2c_adapter ioc_ops = { static struct i2c_adapter ioc_ops = {
.nr = 0, .nr = 0,
.name = "ioc",
.algo_data = &ioc_data, .algo_data = &ioc_data,
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment