staging: Drop owner assignment from i2c_driver
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 10 Jul 2015 06:34:28 +0000 (15:34 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jul 2015 03:18:56 +0000 (20:18 -0700)
i2c_driver does not need to set an owner because i2c_register_driver()
will set it.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c

index 0f524bb7b41d5bfaba0e038e20846c63d24b7785..1f9ba8beb06173adad9041b823498c41313d79b1 100644 (file)
@@ -1126,7 +1126,6 @@ MODULE_DEVICE_TABLE(i2c, synaptics_rmi4_id_table);
 static struct i2c_driver synaptics_rmi4_driver = {
        .driver = {
                .name   =       DRIVER_NAME,
-               .owner  =       THIS_MODULE,
                .pm     =       &synaptics_rmi4_dev_pm_ops,
        },
        .probe          =       synaptics_rmi4_probe,