Skip to content

Commit e8a62f3

Browse files
andy-shevrafaeljw
authored andcommitted
ACPI: docs: enumeration: Remove redundant .owner assignment
The owner member of the struct i2c_driver is assigned by a corresponding macro. No need to assign it explicitly. Fixes: 59c3987 ("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>
1 parent d72f06c commit e8a62f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Documentation/firmware-guide/acpi/enumeration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ input driver::
243243
static struct i2c_driver mpu3050_i2c_driver = {
244244
.driver = {
245245
.name = "mpu3050",
246-
.owner = THIS_MODULE,
247246
.pm = &mpu3050_pm,
248247
.of_match_table = mpu3050_of_match,
249248
.acpi_match_table = ACPI_PTR(mpu3050_acpi_match),
@@ -252,6 +251,7 @@ input driver::
252251
.remove = mpu3050_remove,
253252
.id_table = mpu3050_ids,
254253
};
254+
module_i2c_driver(mpu3050_i2c_driver);
255255

256256
Reference to PWM device
257257
=======================

0 commit comments

Comments
 (0)