Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da3b915a authored by Russell King's avatar Russell King Committed by Greg Kroah-Hartman
Browse files

i2c: acorn: fix i2c warning



commit ca21f851cc9643af049226d57fabc3c883ea648e 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>
Cc: stable@kernel.org
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d3e58022
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -81,6 +81,7 @@ static struct i2c_algo_bit_data ioc_data = {

static struct i2c_adapter ioc_ops = {
	.nr			= 0,
	.name			= "ioc",
	.algo_data		= &ioc_data,
};