OSDN Git Service

powerpc/pmac: Convert windfarm_smu_sat to new i2c probing
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 18 Apr 2012 22:16:46 +0000 (22:16 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 30 Apr 2012 05:37:19 +0000 (15:37 +1000)
commite326b30fda9a985a2e7fda6fb9212b86bf025c39
treea72930b7ffe88e558d3fd4fdb00db2ccf9169adb
parent22b6d2ea355449fc2a9a4dc5c346615af86b876e
powerpc/pmac: Convert windfarm_smu_sat to new i2c probing

This simplifies the driver to stop using the deprecated attach interface.

While at it we also implement teardown properly and fix the refcounting
by using a kref.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/macintosh/windfarm_smu_sat.c