With the addition of ASF, the current adapter information must now correctly print the SMBus node details, whether it pertains to PIIX4 or ASF. Update the driver to reflect this change accordingly. Co-developed-by: Sanket Goswami <Sanket.Goswami@xxxxxxx> Signed-off-by: Sanket Goswami <Sanket.Goswami@xxxxxxx> Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@xxxxxxx> --- drivers/i2c/busses/i2c-piix4.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-piix4.c b/drivers/i2c/busses/i2c-piix4.c index 3bcf2e8b24e7..789dbe832012 100644 --- a/drivers/i2c/busses/i2c-piix4.c +++ b/drivers/i2c/busses/i2c-piix4.c @@ -1194,6 +1194,7 @@ static int piix4_add_adapter(struct pci_dev *dev, unsigned short smba, { struct i2c_adapter *adap; struct i2c_piix4_adapdata *adapdata; + const char *node = "PIIX4"; int retval; adap = kzalloc(sizeof(*adap), GFP_KERNEL); @@ -1213,6 +1214,7 @@ static int piix4_add_adapter(struct pci_dev *dev, unsigned short smba, adap->algo = &piix4_smbus_algorithm_sb800; break; case SMBUS_ASF: + node = "ASF"; adap->algo = &sb800_asf_smbus_algorithm; break; default: @@ -1243,7 +1245,7 @@ static int piix4_add_adapter(struct pci_dev *dev, unsigned short smba, } snprintf(adap->name, sizeof(adap->name), - "SMBus PIIX4 adapter%s at %04x", name, smba); + "SMBus %s adapter%s at %04x", node, name, smba); i2c_set_adapdata(adap, adapdata); -- 2.25.1