summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sr.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2024-03-28 21:45:48 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2024-04-05 20:58:25 -0400
commitdc916f7f0f5e3dac09b631f786f6488111d462ca (patch)
tree152434f63e40a55dce44b3bfd3a6389fa5cb7bfe /drivers/scsi/sr.c
parent8d326b243c111a782d4cf4737844fdfe96e30545 (diff)
downloadlinux-dc916f7f0f5e3dac09b631f786f6488111d462ca.tar.gz
linux-dc916f7f0f5e3dac09b631f786f6488111d462ca.tar.bz2
linux-dc916f7f0f5e3dac09b631f786f6488111d462ca.zip
scsi: sr: Drop driver owner initialization
Core in scsi_register_driver() already sets the .owner, so driver does not need to. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20240328-b4-module-owner-scsi-v1-4-c86cb4f6e91c@linaro.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/sr.c')
-rw-r--r--drivers/scsi/sr.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c
index 268b3a40891e..7ab000942b97 100644
--- a/drivers/scsi/sr.c
+++ b/drivers/scsi/sr.c
@@ -95,7 +95,6 @@ static const struct dev_pm_ops sr_pm_ops = {
static struct scsi_driver sr_template = {
.gendrv = {
.name = "sr",
- .owner = THIS_MODULE,
.probe = sr_probe,
.remove = sr_remove,
.pm = &sr_pm_ops,