linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] usb: phy: fsl-usb: drop driver owner assignment
@ 2024-03-27 17:46 Krzysztof Kozlowski
  2024-03-27 17:46 ` [PATCH 2/2] usb: typec: nvidia: " Krzysztof Kozlowski
  2024-04-02 10:10 ` [PATCH 1/2] usb: phy: fsl-usb: " Heikki Krogerus
  0 siblings, 2 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2024-03-27 17:46 UTC (permalink / raw)
  To: Ran Wang, Greg Kroah-Hartman, Heikki Krogerus, linux-usb,
	linuxppc-dev, linux-kernel
  Cc: Krzysztof Kozlowski

Core in platform_driver_register() already sets the .owner, so driver
does not need to.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/usb/phy/phy-fsl-usb.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/usb/phy/phy-fsl-usb.c b/drivers/usb/phy/phy-fsl-usb.c
index 79617bb0a70e..1ebbf189a535 100644
--- a/drivers/usb/phy/phy-fsl-usb.c
+++ b/drivers/usb/phy/phy-fsl-usb.c
@@ -1005,7 +1005,6 @@ struct platform_driver fsl_otg_driver = {
 	.remove_new = fsl_otg_remove,
 	.driver = {
 		.name = driver_name,
-		.owner = THIS_MODULE,
 	},
 };
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] usb: typec: nvidia: drop driver owner assignment
  2024-03-27 17:46 [PATCH 1/2] usb: phy: fsl-usb: drop driver owner assignment Krzysztof Kozlowski
@ 2024-03-27 17:46 ` Krzysztof Kozlowski
  2024-04-02 10:11   ` Heikki Krogerus
  2024-04-02 10:10 ` [PATCH 1/2] usb: phy: fsl-usb: " Heikki Krogerus
  1 sibling, 1 reply; 4+ messages in thread
From: Krzysztof Kozlowski @ 2024-03-27 17:46 UTC (permalink / raw)
  To: Ran Wang, Greg Kroah-Hartman, Heikki Krogerus, linux-usb,
	linuxppc-dev, linux-kernel
  Cc: Krzysztof Kozlowski

Core in typec_altmode_register_driver() already sets the .owner, so
driver does not need to.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/usb/typec/altmodes/nvidia.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/usb/typec/altmodes/nvidia.c b/drivers/usb/typec/altmodes/nvidia.c
index c36769736405..fe70b36f078f 100644
--- a/drivers/usb/typec/altmodes/nvidia.c
+++ b/drivers/usb/typec/altmodes/nvidia.c
@@ -35,7 +35,6 @@ static struct typec_altmode_driver nvidia_altmode_driver = {
 	.remove = nvidia_altmode_remove,
 	.driver = {
 		.name = "typec_nvidia",
-		.owner = THIS_MODULE,
 	},
 };
 module_typec_altmode_driver(nvidia_altmode_driver);
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] usb: phy: fsl-usb: drop driver owner assignment
  2024-03-27 17:46 [PATCH 1/2] usb: phy: fsl-usb: drop driver owner assignment Krzysztof Kozlowski
  2024-03-27 17:46 ` [PATCH 2/2] usb: typec: nvidia: " Krzysztof Kozlowski
@ 2024-04-02 10:10 ` Heikki Krogerus
  1 sibling, 0 replies; 4+ messages in thread
From: Heikki Krogerus @ 2024-04-02 10:10 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Greg Kroah-Hartman, Ran Wang, linuxppc-dev, linux-usb,
	linux-kernel

On Wed, Mar 27, 2024 at 06:46:08PM +0100, Krzysztof Kozlowski wrote:
> Core in platform_driver_register() already sets the .owner, so driver
> does not need to.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>

> ---
>  drivers/usb/phy/phy-fsl-usb.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/usb/phy/phy-fsl-usb.c b/drivers/usb/phy/phy-fsl-usb.c
> index 79617bb0a70e..1ebbf189a535 100644
> --- a/drivers/usb/phy/phy-fsl-usb.c
> +++ b/drivers/usb/phy/phy-fsl-usb.c
> @@ -1005,7 +1005,6 @@ struct platform_driver fsl_otg_driver = {
>  	.remove_new = fsl_otg_remove,
>  	.driver = {
>  		.name = driver_name,
> -		.owner = THIS_MODULE,
>  	},
>  };
>  
> -- 
> 2.34.1

-- 
heikki

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] usb: typec: nvidia: drop driver owner assignment
  2024-03-27 17:46 ` [PATCH 2/2] usb: typec: nvidia: " Krzysztof Kozlowski
@ 2024-04-02 10:11   ` Heikki Krogerus
  0 siblings, 0 replies; 4+ messages in thread
From: Heikki Krogerus @ 2024-04-02 10:11 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Greg Kroah-Hartman, Ran Wang, linuxppc-dev, linux-usb,
	linux-kernel

On Wed, Mar 27, 2024 at 06:46:09PM +0100, Krzysztof Kozlowski wrote:
> Core in typec_altmode_register_driver() already sets the .owner, so
> driver does not need to.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>

> ---
>  drivers/usb/typec/altmodes/nvidia.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/usb/typec/altmodes/nvidia.c b/drivers/usb/typec/altmodes/nvidia.c
> index c36769736405..fe70b36f078f 100644
> --- a/drivers/usb/typec/altmodes/nvidia.c
> +++ b/drivers/usb/typec/altmodes/nvidia.c
> @@ -35,7 +35,6 @@ static struct typec_altmode_driver nvidia_altmode_driver = {
>  	.remove = nvidia_altmode_remove,
>  	.driver = {
>  		.name = "typec_nvidia",
> -		.owner = THIS_MODULE,
>  	},
>  };
>  module_typec_altmode_driver(nvidia_altmode_driver);
> -- 
> 2.34.1

-- 
heikki

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-04-02 10:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-27 17:46 [PATCH 1/2] usb: phy: fsl-usb: drop driver owner assignment Krzysztof Kozlowski
2024-03-27 17:46 ` [PATCH 2/2] usb: typec: nvidia: " Krzysztof Kozlowski
2024-04-02 10:11   ` Heikki Krogerus
2024-04-02 10:10 ` [PATCH 1/2] usb: phy: fsl-usb: " Heikki Krogerus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).