diff mbox series

[1/2] usb: phy: fsl-usb: drop driver owner assignment

Message ID 20240327174609.519252-1-krzysztof.kozlowski@linaro.org
State New
Headers show
Series [1/2] usb: phy: fsl-usb: drop driver owner assignment | expand

Commit Message

Krzysztof Kozlowski March 27, 2024, 5:46 p.m. UTC
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(-)

Comments

Heikki Krogerus April 2, 2024, 10:10 a.m. UTC | #1
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
diff mbox series

Patch

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,
 	},
 };