diff mbox series

[1/2] scsi: csiostor: drop driver owner assignment

Message ID 20240327174921.519830-1-krzysztof.kozlowski@linaro.org
State New
Headers show
Series [1/2] scsi: csiostor: drop driver owner assignment | expand

Commit Message

Krzysztof Kozlowski March 27, 2024, 5:49 p.m. UTC
PCI core in pci_register_driver() already sets the .owner, so driver
does not need to.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/scsi/csiostor/csio_init.c | 3 ---
 1 file changed, 3 deletions(-)

Comments

Martin K. Petersen April 9, 2024, 3:08 a.m. UTC | #1
On Wed, 27 Mar 2024 18:49:20 +0100, Krzysztof Kozlowski wrote:

> PCI core in pci_register_driver() already sets the .owner, so driver
> does not need to.
> 
> 

Applied to 6.10/scsi-queue, thanks!

[1/2] scsi: csiostor: drop driver owner assignment
      https://git.kernel.org/mkp/scsi/c/ca0e1b9afbc9
[2/2] scsi: qla2xxx: drop driver owner assignment
      https://git.kernel.org/mkp/scsi/c/4e64bbba5352
diff mbox series

Patch

diff --git a/drivers/scsi/csiostor/csio_init.c b/drivers/scsi/csiostor/csio_init.c
index d649b7a2a879..9a3f2ed050bd 100644
--- a/drivers/scsi/csiostor/csio_init.c
+++ b/drivers/scsi/csiostor/csio_init.c
@@ -1185,9 +1185,6 @@  static struct pci_error_handlers csio_err_handler = {
 
 static struct pci_driver csio_pci_driver = {
 	.name		= KBUILD_MODNAME,
-	.driver		= {
-		.owner	= THIS_MODULE,
-	},
 	.id_table	= csio_pci_tbl,
 	.probe		= csio_probe_one,
 	.remove		= csio_remove_one,