Commit 68fb0f04 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

I2C: convert from pci_module_init to pci_register_driver for all i2c drivers.

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 9ebb08c8
......@@ -529,7 +529,7 @@ static struct pci_driver ali1535_driver = {
static int __init i2c_ali1535_init(void)
{
return pci_module_init(&ali1535_driver);
return pci_register_driver(&ali1535_driver);
}
static void __exit i2c_ali1535_exit(void)
......
......@@ -405,7 +405,7 @@ static struct pci_driver ali1563_pci_driver = {
static int __init ali1563_init(void)
{
return pci_module_init(&ali1563_pci_driver);
return pci_register_driver(&ali1563_pci_driver);
}
module_init(ali1563_init);
......
......@@ -519,7 +519,7 @@ static struct pci_driver ali15x3_driver = {
static int __init i2c_ali15x3_init(void)
{
return pci_module_init(&ali15x3_driver);
return pci_register_driver(&ali15x3_driver);
}
static void __exit i2c_ali15x3_exit(void)
......
......@@ -408,7 +408,7 @@ static struct pci_driver amd756_driver = {
static int __init amd756_init(void)
{
return pci_module_init(&amd756_driver);
return pci_register_driver(&amd756_driver);
}
static void __exit amd756_exit(void)
......
......@@ -402,7 +402,7 @@ static struct pci_driver amd8111_driver = {
static int __init i2c_amd8111_init(void)
{
return pci_module_init(&amd8111_driver);
return pci_register_driver(&amd8111_driver);
}
......
......@@ -168,7 +168,7 @@ static struct pci_driver hydra_driver = {
static int __init i2c_hydra_init(void)
{
return pci_module_init(&hydra_driver);
return pci_register_driver(&hydra_driver);
}
......
......@@ -633,7 +633,7 @@ static struct pci_driver i801_driver = {
static int __init i2c_i801_init(void)
{
return pci_module_init(&i801_driver);
return pci_register_driver(&i801_driver);
}
static void __exit i2c_i801_exit(void)
......
......@@ -241,7 +241,7 @@ static struct pci_driver i810_driver = {
static int __init i2c_i810_init(void)
{
return pci_module_init(&i810_driver);
return pci_register_driver(&i810_driver);
}
static void __exit i2c_i810_exit(void)
......
......@@ -394,7 +394,7 @@ static struct pci_driver nforce2_driver = {
static int __init nforce2_init(void)
{
return pci_module_init(&nforce2_driver);
return pci_register_driver(&nforce2_driver);
}
static void __exit nforce2_exit(void)
......
......@@ -503,7 +503,7 @@ static struct pci_driver piix4_driver = {
static int __init i2c_piix4_init(void)
{
return pci_module_init(&piix4_driver);
return pci_register_driver(&piix4_driver);
}
static void __exit i2c_piix4_exit(void)
......
......@@ -324,7 +324,7 @@ static struct pci_driver prosavage_driver = {
static int __init i2c_prosavage_init(void)
{
return pci_module_init(&prosavage_driver);
return pci_register_driver(&prosavage_driver);
}
static void __exit i2c_prosavage_exit(void)
......
......@@ -188,7 +188,7 @@ static struct pci_driver savage4_driver = {
static int __init i2c_savage4_init(void)
{
return pci_module_init(&savage4_driver);
return pci_register_driver(&savage4_driver);
}
static void __exit i2c_savage4_exit(void)
......
......@@ -403,7 +403,7 @@ static struct pci_driver sis5595_driver = {
static int __init i2c_sis5595_init(void)
{
return pci_module_init(&sis5595_driver);
return pci_register_driver(&sis5595_driver);
}
static void __exit i2c_sis5595_exit(void)
......
......@@ -505,7 +505,7 @@ static struct pci_driver sis630_driver = {
static int __init i2c_sis630_init(void)
{
return pci_module_init(&sis630_driver);
return pci_register_driver(&sis630_driver);
}
......
......@@ -350,7 +350,7 @@ static struct pci_driver sis96x_driver = {
static int __init i2c_sis96x_init(void)
{
printk(KERN_INFO "i2c-sis96x version %s\n", SIS96x_VERSION);
return pci_module_init(&sis96x_driver);
return pci_register_driver(&sis96x_driver);
}
static void __exit i2c_sis96x_exit(void)
......
......@@ -168,7 +168,7 @@ static struct pci_driver vt586b_driver = {
static int __init i2c_vt586b_init(void)
{
return pci_module_init(&vt586b_driver);
return pci_register_driver(&vt586b_driver);
}
static void __exit i2c_vt586b_exit(void)
......
......@@ -465,7 +465,7 @@ static struct pci_driver vt596_driver = {
static int __init i2c_vt596_init(void)
{
return pci_module_init(&vt596_driver);
return pci_register_driver(&vt596_driver);
}
......
......@@ -234,7 +234,7 @@ static struct pci_driver voodoo3_driver = {
static int __init i2c_voodoo3_init(void)
{
return pci_module_init(&voodoo3_driver);
return pci_register_driver(&voodoo3_driver);
}
static void __exit i2c_voodoo3_exit(void)
......
......@@ -838,7 +838,7 @@ static struct pci_driver via686a_pci_driver = {
static int __init sm_via686a_init(void)
{
return pci_module_init(&via686a_pci_driver);
return pci_register_driver(&via686a_pci_driver);
}
static void __exit sm_via686a_exit(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment