OSDN Git Service

i2c: acorn: fix i2c warning
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 11 Jun 2019 16:48:18 +0000 (17:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Jun 2019 06:17:18 +0000 (08:17 +0200)
commit6545c8a24d329e05624a7d323f04c93f0348b885
tree23b91827dfa6fe7ca115b6f2e5df9b90618f3dfd
parent607a79adcb46e31be2c7c810ac7c9df3bb040cb8
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: 2236baa75f70 ("i2c: Sanity checks on adapter registration")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-acorn.c