[PATCH] platform/chrome: pstore: fix platform_no_drv_owner.cocci warnings

From: kbuild test robot
Date: Mon Feb 15 2016 - 04:01:03 EST


drivers/platform/chrome/chromeos_pstore.c:85:3-8: No need to set .owner here. The core will do it.

Remove .owner field if calls are used which set it automatically

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

CC: Aaron Durbin <adurbin@xxxxxxxxxxxx>
Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>
---

chromeos_pstore.c | 1 -
1 file changed, 1 deletion(-)

--- a/drivers/platform/chrome/chromeos_pstore.c
+++ b/drivers/platform/chrome/chromeos_pstore.c
@@ -82,7 +82,6 @@ MODULE_DEVICE_TABLE(acpi, cros_ramoops_a
static struct platform_driver chromeos_ramoops_acpi = {
.driver = {
.name = "chromeos_pstore",
- .owner = THIS_MODULE,
.acpi_match_table = ACPI_PTR(cros_ramoops_acpi_match),
},
};