USB: Remove .owner field for driver
authorKiran Padwal <kiran.padwal@smartplayin.com>
Wed, 24 Sep 2014 11:18:14 +0000 (16:48 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Sep 2014 01:55:10 +0000 (21:55 -0400)
There is no need to init .owner field.

Based on the patch from Peter Griffin <peter.griffin@linaro.org>
"mmc: remove .owner field for drivers using module_platform_driver"

This patch removes the superflous .owner field for drivers which
use the module_platform_driver API, as this is overriden in
platform_driver_register anyway."

Signed-off-by: Kiran Padwal <kiran.padwal@smartplayin.com>
Reviewed-by: Ivan T. Ivanov <iivanov@mm-sol.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-keystone.c
drivers/usb/dwc3/dwc3-qcom.c
drivers/usb/phy/phy-msm-usb.c

index 1fad1618df6e8b742785635e8582fd9663d65d54..7ec8495f45234841efc823871eaf1f29de25219e 100644 (file)
@@ -189,7 +189,6 @@ static struct platform_driver kdwc3_driver = {
        .remove         = kdwc3_remove,
        .driver         = {
                .name   = "keystone-dwc3",
-               .owner          = THIS_MODULE,
                .of_match_table = kdwc3_of_match,
        },
 };
index 611f8e7e829974136b1016569cb14e84fd9b2c6e..8c2e8eec80c21d24540ebc939be6123c88cc985b 100644 (file)
@@ -118,7 +118,6 @@ static struct platform_driver dwc3_qcom_driver = {
        .remove         = dwc3_qcom_remove,
        .driver         = {
                .name   = "qcom-dwc3",
-               .owner  = THIS_MODULE,
                .of_match_table = of_dwc3_match,
        },
 };
index 7bb48af9e02776f8dac102ae49adbfc492cfe096..7843ef7dd0ff9512846e6f4b599d5ea1b2286dc3 100644 (file)
@@ -1841,7 +1841,6 @@ static struct platform_driver msm_otg_driver = {
        .remove = msm_otg_remove,
        .driver = {
                .name = DRIVER_NAME,
-               .owner = THIS_MODULE,
                .pm = &msm_otg_dev_pm_ops,
                .of_match_table = msm_otg_dt_match,
        },