Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752621AbbGOHiX (ORCPT ); Wed, 15 Jul 2015 03:38:23 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:36912 "EHLO mx08-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752574AbbGOHiU (ORCPT ); Wed, 15 Jul 2015 03:38:20 -0400 Message-ID: <55A60DC1.2080901@st.com> Date: Wed, 15 Jul 2015 09:37:37 +0200 From: Patrice Chotard User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Krzysztof Kozlowski , Kishon Vijay Abraham I , Srinivas Kandagatla , Maxime Coquelin , Heiko Stuebner , open list: GENERIC PHY FRAMEWORK , "; moderated list": ARM/STI ARCHITECTURE , "; open list": ARM/STI ARCHITECTURE , "; open list": ARM/Rockchip SoC support , ; Illegal-Object: Syntax error in To: addresses found on vger.kernel.org: To: ;moderated list:ARM/STI ARCHITECTURE ^-extraneous tokens in mailbox, missing end of mailbox Subject: Re: [PATCH] phy: Drop owner assignment from platform_driver References: <1436509587-27258-1-git-send-email-k.kozlowski@samsung.com> In-Reply-To: <1436509587-27258-1-git-send-email-k.kozlowski@samsung.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.48.1.198] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.14.151,1.0.33,0.0.0000 definitions=2015-07-15_03:2015-07-14,2015-07-15,1970-01-01 signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3228 Lines: 93 Hi Krysztof On 07/10/2015 08:26 AM, Krzysztof Kozlowski wrote: > platform_driver does not need to set an owner because > platform_driver_register() will set it. > > Signed-off-by: Krzysztof Kozlowski > > --- > > The coccinelle script which generated the patch was sent here: > http://www.spinics.net/lists/kernel/msg2029903.html > --- > drivers/phy/phy-berlin-usb.c | 1 - > drivers/phy/phy-miphy28lp.c | 1 - > drivers/phy/phy-qcom-ufs-qmp-14nm.c | 1 - > drivers/phy/phy-qcom-ufs-qmp-20nm.c | 1 - > drivers/phy/phy-rockchip-usb.c | 1 - > 5 files changed, 5 deletions(-) > > diff --git a/drivers/phy/phy-berlin-usb.c b/drivers/phy/phy-berlin-usb.c > index c6fc95b53083..d7431f6ab975 100644 > --- a/drivers/phy/phy-berlin-usb.c > +++ b/drivers/phy/phy-berlin-usb.c > @@ -207,7 +207,6 @@ static struct platform_driver phy_berlin_usb_driver = { > .probe = phy_berlin_usb_probe, > .driver = { > .name = "phy-berlin-usb", > - .owner = THIS_MODULE, > .of_match_table = phy_berlin_sata_of_match, > }, > }; > diff --git a/drivers/phy/phy-miphy28lp.c b/drivers/phy/phy-miphy28lp.c > index 5e257ef7ac05..677c290f4b14 100644 > --- a/drivers/phy/phy-miphy28lp.c > +++ b/drivers/phy/phy-miphy28lp.c > @@ -1268,7 +1268,6 @@ static struct platform_driver miphy28lp_driver = { > .probe = miphy28lp_probe, > .driver = { > .name = "miphy28lp-phy", > - .owner = THIS_MODULE, > .of_match_table = miphy28lp_of_match, > } > }; > diff --git a/drivers/phy/phy-qcom-ufs-qmp-14nm.c b/drivers/phy/phy-qcom-ufs-qmp-14nm.c > index f5fc50a9fce7..e1eea1b379fc 100644 > --- a/drivers/phy/phy-qcom-ufs-qmp-14nm.c > +++ b/drivers/phy/phy-qcom-ufs-qmp-14nm.c > @@ -191,7 +191,6 @@ static struct platform_driver ufs_qcom_phy_qmp_14nm_driver = { > .driver = { > .of_match_table = ufs_qcom_phy_qmp_14nm_of_match, > .name = "ufs_qcom_phy_qmp_14nm", > - .owner = THIS_MODULE, > }, > }; > > diff --git a/drivers/phy/phy-qcom-ufs-qmp-20nm.c b/drivers/phy/phy-qcom-ufs-qmp-20nm.c > index 8332f96b2c4a..fde8c876823b 100644 > --- a/drivers/phy/phy-qcom-ufs-qmp-20nm.c > +++ b/drivers/phy/phy-qcom-ufs-qmp-20nm.c > @@ -247,7 +247,6 @@ static struct platform_driver ufs_qcom_phy_qmp_20nm_driver = { > .driver = { > .of_match_table = ufs_qcom_phy_qmp_20nm_of_match, > .name = "ufs_qcom_phy_qmp_20nm", > - .owner = THIS_MODULE, > }, > }; > > diff --git a/drivers/phy/phy-rockchip-usb.c b/drivers/phy/phy-rockchip-usb.c > index 7d4c33643768..bf78721b58f4 100644 > --- a/drivers/phy/phy-rockchip-usb.c > +++ b/drivers/phy/phy-rockchip-usb.c > @@ -146,7 +146,6 @@ static struct platform_driver rockchip_usb_driver = { > .probe = rockchip_usb_phy_probe, > .driver = { > .name = "rockchip-usb-phy", > - .owner = THIS_MODULE, > .of_match_table = rockchip_usb_phy_dt_ids, > }, > }; for drivers/phy/phy-miphy28lp.c Acked-by: Patrice Chotard Thanks -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/