Lines Matching +full:semi +full:- +full:static
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"
23 static struct pci_driver pasemi_smb_pci_driver;
25 static int pasemi_smb_pci_probe(struct pci_dev *dev, in pasemi_smb_pci_probe()
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()
69 static const struct pci_device_id pasemi_smb_pci_ids[] = {
76 static struct pci_driver pasemi_smb_pci_driver = {
77 .name = "i2c-pasemi",
86 MODULE_DESCRIPTION("PA Semi PWRficient SMBus driver");