Loading drivers/i2c/busses/i2c-viapro.c +15 −18 Original line number Diff line number Diff line Loading @@ -330,30 +330,27 @@ static int vt596_probe(struct pci_dev *pdev, SMBHSTCFG = 0x84; } else { /* no matches at all */ dev_err(&pdev->dev, "Cannot configure " return dev_err_probe(&pdev->dev, -ENODEV, "Cannot configure " "SMBus I/O Base address\n"); return -ENODEV; } } vt596_smba &= 0xfff0; if (vt596_smba == 0) { dev_err(&pdev->dev, "SMBus base address " if (vt596_smba == 0) return dev_err_probe(&pdev->dev, -ENODEV, "SMBus base address " "uninitialized - upgrade BIOS or use " "force_addr=0xaddr\n"); return -ENODEV; } found: error = acpi_check_region(vt596_smba, 8, vt596_driver.name); if (error) return -ENODEV; if (!request_region(vt596_smba, 8, vt596_driver.name)) { dev_err(&pdev->dev, "SMBus region 0x%x already in use!\n", if (!request_region(vt596_smba, 8, vt596_driver.name)) return dev_err_probe(&pdev->dev, -ENODEV, "SMBus region 0x%x already in use!\n", vt596_smba); return -ENODEV; } pci_read_config_byte(pdev, SMBHSTCFG, &temp); /* If force_addr is set, we program the new address here. Just to make Loading @@ -375,10 +372,10 @@ static int vt596_probe(struct pci_dev *pdev, pci_write_config_byte(pdev, SMBHSTCFG, temp | 0x01); dev_info(&pdev->dev, "Enabling SMBus device\n"); } else { dev_err(&pdev->dev, "SMBUS: Error: Host SMBus " "controller not enabled! - upgrade BIOS or " "use force=1\n"); error = -ENODEV; error = dev_err_probe(&pdev->dev, -ENODEV, "SMBUS: Error: Host SMBus " "controller not enabled! - " "upgrade BIOS or use force=1\n"); goto release_region; } } Loading Loading
drivers/i2c/busses/i2c-viapro.c +15 −18 Original line number Diff line number Diff line Loading @@ -330,30 +330,27 @@ static int vt596_probe(struct pci_dev *pdev, SMBHSTCFG = 0x84; } else { /* no matches at all */ dev_err(&pdev->dev, "Cannot configure " return dev_err_probe(&pdev->dev, -ENODEV, "Cannot configure " "SMBus I/O Base address\n"); return -ENODEV; } } vt596_smba &= 0xfff0; if (vt596_smba == 0) { dev_err(&pdev->dev, "SMBus base address " if (vt596_smba == 0) return dev_err_probe(&pdev->dev, -ENODEV, "SMBus base address " "uninitialized - upgrade BIOS or use " "force_addr=0xaddr\n"); return -ENODEV; } found: error = acpi_check_region(vt596_smba, 8, vt596_driver.name); if (error) return -ENODEV; if (!request_region(vt596_smba, 8, vt596_driver.name)) { dev_err(&pdev->dev, "SMBus region 0x%x already in use!\n", if (!request_region(vt596_smba, 8, vt596_driver.name)) return dev_err_probe(&pdev->dev, -ENODEV, "SMBus region 0x%x already in use!\n", vt596_smba); return -ENODEV; } pci_read_config_byte(pdev, SMBHSTCFG, &temp); /* If force_addr is set, we program the new address here. Just to make Loading @@ -375,10 +372,10 @@ static int vt596_probe(struct pci_dev *pdev, pci_write_config_byte(pdev, SMBHSTCFG, temp | 0x01); dev_info(&pdev->dev, "Enabling SMBus device\n"); } else { dev_err(&pdev->dev, "SMBUS: Error: Host SMBus " "controller not enabled! - upgrade BIOS or " "use force=1\n"); error = -ENODEV; error = dev_err_probe(&pdev->dev, -ENODEV, "SMBUS: Error: Host SMBus " "controller not enabled! - " "upgrade BIOS or use force=1\n"); goto release_region; } } Loading