w1: masters: drop owner assignment from platform_drivers
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:56 +0000 (16:21 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:56 +0000 (16:21 +0200)
A platform_driver does not need to set an owner, it will be populated by the
driver core.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/w1/masters/mxc_w1.c
drivers/w1/masters/w1-gpio.c

index da3d0f0..53bf2c8 100644 (file)
@@ -175,7 +175,6 @@ MODULE_DEVICE_TABLE(of, mxc_w1_dt_ids);
 static struct platform_driver mxc_w1_driver = {
        .driver = {
                .name = "mxc_w1",
-               .owner = THIS_MODULE,
                .of_match_table = mxc_w1_dt_ids,
        },
        .probe = mxc_w1_probe,
index 1d111e5..b99a932 100644 (file)
@@ -228,7 +228,6 @@ static int w1_gpio_resume(struct platform_device *pdev)
 static struct platform_driver w1_gpio_driver = {
        .driver = {
                .name   = "w1-gpio",
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(w1_gpio_dt_ids),
        },
        .probe = w1_gpio_probe,