[PATCH] staging: mt7621-pci: Remove redundant owner assignment

NeilBrown neil at brown.name
Fri Apr 20 21:58:10 UTC 2018


On Wed, Apr 18 2018, Christian Lütke-Stetzkamp wrote:

> Remove the owner assignment form the platform driver as
> platform_driver_register() already initializes the owner.
> Found using coccinelle.
>
> Signed-off-by: Christian Lütke-Stetzkamp <christian at lkamp.de>

Reviewed-by: NeilBrown <neil at brown.name>

Thanks,
NeilBrown

> ---
>  drivers/staging/mt7621-pci/pci-mt7621.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/staging/mt7621-pci/pci-mt7621.c b/drivers/staging/mt7621-pci/pci-mt7621.c
> index 1fa41eb8a87f..8072b817b4e0 100644
> --- a/drivers/staging/mt7621-pci/pci-mt7621.c
> +++ b/drivers/staging/mt7621-pci/pci-mt7621.c
> @@ -827,7 +827,6 @@ static struct platform_driver mt7621_pci_driver = {
>  	.probe = mt7621_pci_probe,
>  	.driver = {
>  		.name = "mt7621-pci",
> -		.owner = THIS_MODULE,
>  		.of_match_table = of_match_ptr(mt7621_pci_ids),
>  	},
>  };
> -- 
> 2.16.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20180421/fc231e70/attachment.asc>


More information about the devel mailing list