Commit 50862d94 authored by Atsushi Nemoto's avatar Atsushi Nemoto Committed by Jean Delvare

i2c-gpio: Initialize adapter class

This is required to let hwmon drivers attach to the adapter.
Signed-off-by: default avatarAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent 45ccc6c5
...@@ -140,6 +140,7 @@ static int __init i2c_gpio_probe(struct platform_device *pdev) ...@@ -140,6 +140,7 @@ static int __init i2c_gpio_probe(struct platform_device *pdev)
adap->owner = THIS_MODULE; adap->owner = THIS_MODULE;
snprintf(adap->name, sizeof(adap->name), "i2c-gpio%d", pdev->id); snprintf(adap->name, sizeof(adap->name), "i2c-gpio%d", pdev->id);
adap->algo_data = bit_data; adap->algo_data = bit_data;
adap->class = I2C_CLASS_HWMON;
adap->dev.parent = &pdev->dev; adap->dev.parent = &pdev->dev;
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment