static unsigned short ali1535_smba;
-static DECLARE_MUTEX(i2c_ali1535_sem);
+DECLARE_MUTEX(i2c_ali1535_sem);
/* Detect whether a ALI1535 can be found, and initialize it, where necessary.
Note the differences between kernels with the old PCI BIOS interface and
}
-static u32 ali1535_func(struct i2c_adapter *adapter)
+u32 ali1535_func(struct i2c_adapter *adapter)
{
return I2C_FUNC_SMBUS_QUICK | I2C_FUNC_SMBUS_BYTE |
I2C_FUNC_SMBUS_BYTE_DATA | I2C_FUNC_SMBUS_WORD_DATA |
{ },
};
-MODULE_DEVICE_TABLE (pci, ali1535_ids);
-
static int __devinit ali1535_probe(struct pci_dev *dev, const struct pci_device_id *id)
{
if (ali1535_setup(dev)) {
static int __init i2c_ali1535_init(void)
{
- return pci_register_driver(&ali1535_driver);
+ return pci_module_init(&ali1535_driver);
}
static void __exit i2c_ali1535_exit(void)