bbc-i2c: Fix BBC I2C envctrl on SunBlade 2000
authorChristopher Alexander Tobias Schulze <cat.schulze@alice-dsl.net>
Sun, 3 Aug 2014 13:44:52 +0000 (15:44 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 13 Sep 2014 22:41:50 +0000 (23:41 +0100)
commit7446348547d29d412b6736a9e84f59f632d5cac3
tree313c03c3fafac45e9dfe4d933d61e187a978d823
parenta74ed02fa2ad2636c1e6b280e9dd231cc0aea82c
bbc-i2c: Fix BBC I2C envctrl on SunBlade 2000

[ Upstream commit 5cdceab3d5e02eb69ea0f5d8fa9181800baf6f77 ]

Fix regression in bbc i2c temperature and fan control on some Sun systems
that causes the driver to refuse to load due to the bbc_i2c_bussel resource not
being present on the (second) i2c bus where the temperature sensors and fan
control are located. (The check for the number of resources was removed when
the driver was ported to a pure OF driver in mid 2008.)

Signed-off-by: Christopher Alexander Tobias Schulze <cat.schulze@alice-dsl.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/sbus/char/bbc_envctrl.c
drivers/sbus/char/bbc_i2c.c