ACPI: docs: enumeration: Remove redundant .owner assignment
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 28 Feb 2022 22:39:32 +0000 (00:39 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 3 Mar 2022 19:34:45 +0000 (20:34 +0100)
The owner member of the struct i2c_driver is assigned by a corresponding macro.
No need to assign it explicitly.

Fixes: 59c3987805a9 ("ACPI: add documentation about ACPI 5 enumeration")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/firmware-guide/acpi/enumeration.rst

index 799ca240e6126413f78e40757a30feeee6680740..900d193ffa5e730a908250c6ccac7bcc52056699 100644 (file)
@@ -243,7 +243,6 @@ input driver::
        static struct i2c_driver mpu3050_i2c_driver = {
                .driver = {
                        .name   = "mpu3050",
-                       .owner  = THIS_MODULE,
                        .pm     = &mpu3050_pm,
                        .of_match_table = mpu3050_of_match,
                        .acpi_match_table = ACPI_PTR(mpu3050_acpi_match),
@@ -252,6 +251,7 @@ input driver::
                .remove         = mpu3050_remove,
                .id_table       = mpu3050_ids,
        };
+       module_i2c_driver(mpu3050_i2c_driver);
 
 Reference to PWM device
 =======================