Lines Matching +full:semi +full:-
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2006-2007 PA Semi, Inc
5 * SMBus host driver for PA Semi PWRficient
18 #include "i2c-pasemi-core.h"
34 return -ENODEV; in pasemi_smb_pci_probe()
36 smbus = devm_kzalloc(&dev->dev, sizeof(*smbus), GFP_KERNEL); in pasemi_smb_pci_probe()
38 return -ENOMEM; in pasemi_smb_pci_probe()
40 smbus->dev = &dev->dev; in pasemi_smb_pci_probe()
43 smbus->clk_div = CLK_100K_DIV; in pasemi_smb_pci_probe()
49 smbus->hw_rev = PASEMI_HW_REV_PCI; in pasemi_smb_pci_probe()
51 if (!devm_request_region(&dev->dev, base, size, in pasemi_smb_pci_probe()
53 return -EBUSY; in pasemi_smb_pci_probe()
55 smbus->ioaddr = pcim_iomap(dev, 0, 0); in pasemi_smb_pci_probe()
56 if (!smbus->ioaddr) in pasemi_smb_pci_probe()
57 return -EBUSY; in pasemi_smb_pci_probe()
59 smbus->adapter.class = I2C_CLASS_HWMON; in pasemi_smb_pci_probe()
77 .name = "i2c-pasemi",
86 MODULE_DESCRIPTION("PA Semi PWRficient SMBus driver");