This patch updates the .owner field for the i2c core struct xxxx_driver
variables.
Signed-off-by: Laurent Riffard <laurent.riffard@free.fr>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
 }
 
 struct device_driver i2c_adapter_driver = {
+       .owner = THIS_MODULE,
        .name = "i2c_adapter",
        .bus = &i2c_bus_type,
        .probe = i2c_device_probe,
 }
 
 struct class i2c_adapter_class = {
+       .owner =        THIS_MODULE,
        .name =         "i2c-adapter",
        .release =      &i2c_adapter_class_dev_release,
 };
        down(&core_lists);
 
        /* add the driver to the list of i2c drivers in the driver core */
+       driver->driver.owner = driver->owner;
        driver->driver.name = driver->name;
        driver->driver.bus = &i2c_bus_type;
        driver->driver.probe = i2c_device_probe;