From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Lawnick Subject: [PATCH] assign a default class to MPC adapter Date: Thu, 16 Apr 2009 11:06:01 +0200 Message-ID: <49E6F4F9.3060705@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Return-path: Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: "Delvare, Jean " List-Id: linux-i2c@vger.kernel.org For MPC adapter there is no class assigned as it is done in other adapters. This way no new-style client will ever be instantiated. There should be at least a default class assignment. Signed-off-by: Michael Lawnick Cc: Jean Delvare --- drivers/i2c/busses/i2c-mpc.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/busses/i2c-mpc.c b/drivers/i2c/busses/i2c-mpc.c --- a/drivers/i2c/busses/i2c-mpc.c +++ b/drivers/i2c/busses/i2c-mpc.c @@ -310,6 +310,7 @@ static const struct i2c_algorithm mpc_algo = { static struct i2c_adapter mpc_ops = { .owner = THIS_MODULE, .name = "MPC adapter", + .class = I2C_CLASS_HWMON, .algo = &mpc_algo, .timeout = 1, }; -- Michael Lawnick