staging: gpib: fmh_gpib: Remove unnecessary .owner assignment
authorChen Ni <nichen@iscas.ac.cn>
Mon, 7 Apr 2025 09:26:32 +0000 (17:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Apr 2025 14:48:09 +0000 (16:48 +0200)
Remove .owner field if calls are used which set it automatically.
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Link: https://lore.kernel.org/r/20250407092632.2952200-1-nichen@iscas.ac.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gpib/fmh_gpib/fmh_gpib.c

index 6c122ed4152b0f650ddb45c21f7f8aac5aa70469..cba91f7c123926a48a47e7dd69611ee0816daf84 100644 (file)
@@ -1634,7 +1634,6 @@ MODULE_DEVICE_TABLE(of, fmh_gpib_of_match);
 static struct platform_driver fmh_gpib_platform_driver = {
        .driver = {
                .name = DRV_NAME,
-               .owner = THIS_MODULE,
                .of_match_table = fmh_gpib_of_match,
        },
        .probe = &fmh_gpib_platform_probe