Skip to contentSkip to conversation

i2c: acorn: fix i2c warning

PATCH Applied Russell King 2 participants 2 messages Jun 11, 2019 – Jun 12, 2019 I2C subsystem host drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c: acorn: fix i2c warning

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 2236baa75f70 ("i2c: Sanity checks on adapter registration")
---
 drivers/i2c/busses/i2c-acorn.c | 1 +
 1 file changed, 1 insertion(+)
drivers/i2c/busses/i2c-acorn.c +1 -0
index f4a5ae69bf6a..fa3763e4b3ee 100644
@@ -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,
 };
 
Signature · 1 line
2.7.4
Applied
#1 lore raw
Quoted 6 lines · Russell King

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 2236baa75f70 ("i2c: Sanity checks on adapter registration")

Applied to for-current, thanks!

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel