diff options
author | Jan Glauber <jglauber@cavium.com> | 2017-04-21 10:43:55 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2017-04-21 12:05:22 -0400 |
commit | 889ef45cd4b64cc4fd6dbebecddb8ea4df8cc1e7 (patch) | |
tree | 4e700f473d5f99ea5859777d3971181ee48e778e | |
parent | 63a761eef55759c0bc725739fe575193c09fa4ef (diff) |
i2c: thunderx: Enable HWMON class probing
Set I2C_CLASS_HWMON to enable automatic probing of BMC devices
by the ipmi-ssif driver.
Signed-off-by: Jan Glauber <jglauber@cavium.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
-rw-r--r-- | drivers/i2c/busses/i2c-thunderx-pcidrv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-thunderx-pcidrv.c b/drivers/i2c/busses/i2c-thunderx-pcidrv.c index b4bc884cef93..ea35a895b568 100644 --- a/drivers/i2c/busses/i2c-thunderx-pcidrv.c +++ b/drivers/i2c/busses/i2c-thunderx-pcidrv.c | |||
@@ -211,6 +211,7 @@ static int thunder_i2c_probe_pci(struct pci_dev *pdev, | |||
211 | 211 | ||
212 | i2c->adap = thunderx_i2c_ops; | 212 | i2c->adap = thunderx_i2c_ops; |
213 | i2c->adap.retries = 5; | 213 | i2c->adap.retries = 5; |
214 | i2c->adap.class = I2C_CLASS_HWMON; | ||
214 | i2c->adap.bus_recovery_info = &octeon_i2c_recovery_info; | 215 | i2c->adap.bus_recovery_info = &octeon_i2c_recovery_info; |
215 | i2c->adap.dev.parent = dev; | 216 | i2c->adap.dev.parent = dev; |
216 | i2c->adap.dev.of_node = pdev->dev.of_node; | 217 | i2c->adap.dev.of_node = pdev->dev.of_node; |