diff mbox series

i2c: acorn: fix i2c warning

Message ID E1hajwY-0003Aj-OD@rmk-PC.armlinux.org.uk
State Accepted
Headers show
Series i2c: acorn: fix i2c warning | expand

Commit Message

Russell King (Oracle) June 11, 2019, 4:48 p.m. UTC
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")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
---
 drivers/i2c/busses/i2c-acorn.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Wolfram Sang June 12, 2019, 10:15 a.m. UTC | #1
On Tue, Jun 11, 2019 at 05:48:18PM +0100, Russell King wrote:
> 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")
> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>

Applied to for-current, thanks!
diff mbox series

Patch

diff --git a/drivers/i2c/busses/i2c-acorn.c b/drivers/i2c/busses/i2c-acorn.c
index f4a5ae69bf6a..fa3763e4b3ee 100644
--- a/drivers/i2c/busses/i2c-acorn.c
+++ b/drivers/i2c/busses/i2c-acorn.c
@@ -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,
 };