* [PATCH] i2c: acorn: fix i2c warning
@ 2019-06-11 16:48 Russell King
2019-06-12 10:15 ` Wolfram Sang
0 siblings, 1 reply; 2+ messages in thread
From: Russell King @ 2019-06-11 16:48 UTC (permalink / raw)
To: linux-i2c, linux-arm-kernel
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(+)
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,
};
--
2.7.4
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] i2c: acorn: fix i2c warning
2019-06-11 16:48 [PATCH] i2c: acorn: fix i2c warning Russell King
@ 2019-06-12 10:15 ` Wolfram Sang
0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2019-06-12 10:15 UTC (permalink / raw)
To: Russell King; +Cc: linux-i2c, linux-arm-kernel
[-- Attachment #1.1: Type: text/plain, Size: 399 bytes --]
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!
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-06-12 10:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-11 16:48 [PATCH] i2c: acorn: fix i2c warning Russell King
2019-06-12 10:15 ` Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).