mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-23 09:56:00 +00:00
i2c: piix4: Standardize log messages
Use exactly the same log messages in the legacy setup function and the SB800+ setup function. This way strings can be reused, which saves some bytes in the generated binary. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
parent
85fd0fe6fc
commit
66f8a8ff9d
@ -208,16 +208,16 @@ static int piix4_setup(struct pci_dev *PIIX4_dev,
|
||||
"WARNING: SMBus interface has been FORCEFULLY ENABLED!\n");
|
||||
} else {
|
||||
dev_err(&PIIX4_dev->dev,
|
||||
"Host SMBus controller not enabled!\n");
|
||||
"SMBus Host Controller not enabled!\n");
|
||||
release_region(piix4_smba, SMBIOSIZE);
|
||||
return -ENODEV;
|
||||
}
|
||||
}
|
||||
|
||||
if (((temp & 0x0E) == 8) || ((temp & 0x0E) == 2))
|
||||
dev_dbg(&PIIX4_dev->dev, "Using Interrupt 9 for SMBus.\n");
|
||||
dev_dbg(&PIIX4_dev->dev, "Using IRQ for SMBus\n");
|
||||
else if ((temp & 0x0E) == 0)
|
||||
dev_dbg(&PIIX4_dev->dev, "Using Interrupt SMI# for SMBus.\n");
|
||||
dev_dbg(&PIIX4_dev->dev, "Using SMI# for SMBus\n");
|
||||
else
|
||||
dev_err(&PIIX4_dev->dev, "Illegal Interrupt configuration "
|
||||
"(or code out of date)!\n");
|
||||
@ -279,7 +279,7 @@ static int piix4_setup_sb800(struct pci_dev *PIIX4_dev,
|
||||
|
||||
if (!smb_en_status) {
|
||||
dev_err(&PIIX4_dev->dev,
|
||||
"Host SMBus controller not enabled!\n");
|
||||
"SMBus Host Controller not enabled!\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
@ -311,9 +311,9 @@ static int piix4_setup_sb800(struct pci_dev *PIIX4_dev,
|
||||
release_region(piix4_smba + i2ccfg_offset, 1);
|
||||
|
||||
if (i2ccfg & 1)
|
||||
dev_dbg(&PIIX4_dev->dev, "Using IRQ for SMBus.\n");
|
||||
dev_dbg(&PIIX4_dev->dev, "Using IRQ for SMBus\n");
|
||||
else
|
||||
dev_dbg(&PIIX4_dev->dev, "Using SMI# for SMBus.\n");
|
||||
dev_dbg(&PIIX4_dev->dev, "Using SMI# for SMBus\n");
|
||||
|
||||
dev_info(&PIIX4_dev->dev,
|
||||
"SMBus Host Controller at 0x%x, revision %d\n",
|
||||
|
Loading…
Reference in New Issue
Block a user