platform: x86: drop owner assignment from platform_drivers

A platform_driver does not need to set an owner, it will be populated by the
driver core.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
Wolfram Sang 2014-10-20 16:21:27 +02:00
parent 38c53fa8f0
commit 3493f4144b
22 changed files with 0 additions and 23 deletions

View File

@ -2106,7 +2106,6 @@ static void acer_platform_shutdown(struct platform_device *device)
static struct platform_driver acer_platform_driver = { static struct platform_driver acer_platform_driver = {
.driver = { .driver = {
.name = "acer-wmi", .name = "acer-wmi",
.owner = THIS_MODULE,
.pm = &acer_pm, .pm = &acer_pm,
}, },
.probe = acer_platform_probe, .probe = acer_platform_probe,

View File

@ -533,7 +533,6 @@ static const struct dev_pm_ops acerhdf_pm_ops = {
static struct platform_driver acerhdf_driver = { static struct platform_driver acerhdf_driver = {
.driver = { .driver = {
.name = "acerhdf", .name = "acerhdf",
.owner = THIS_MODULE,
.pm = &acerhdf_pm_ops, .pm = &acerhdf_pm_ops,
}, },
.probe = acerhdf_probe, .probe = acerhdf_probe,

View File

@ -157,7 +157,6 @@ static struct platform_zone *zone_data;
static struct platform_driver platform_driver = { static struct platform_driver platform_driver = {
.driver = { .driver = {
.name = "alienware-wmi", .name = "alienware-wmi",
.owner = THIS_MODULE,
} }
}; };

View File

@ -138,7 +138,6 @@ static int amilo_rfkill_remove(struct platform_device *device)
static struct platform_driver amilo_rfkill_driver = { static struct platform_driver amilo_rfkill_driver = {
.driver = { .driver = {
.name = KBUILD_MODNAME, .name = KBUILD_MODNAME,
.owner = THIS_MODULE,
}, },
.probe = amilo_rfkill_probe, .probe = amilo_rfkill_probe,
.remove = amilo_rfkill_remove, .remove = amilo_rfkill_remove,

View File

@ -1699,7 +1699,6 @@ static void asus_platform_exit(struct asus_laptop *asus)
static struct platform_driver platform_driver = { static struct platform_driver platform_driver = {
.driver = { .driver = {
.name = ASUS_LAPTOP_FILE, .name = ASUS_LAPTOP_FILE,
.owner = THIS_MODULE,
}, },
}; };

View File

@ -710,7 +710,6 @@ static int compal_remove(struct platform_device *);
static struct platform_driver compal_driver = { static struct platform_driver compal_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
}, },
.probe = compal_probe, .probe = compal_probe,
.remove = compal_remove, .remove = compal_remove,

View File

@ -84,7 +84,6 @@ static struct calling_interface_token *da_tokens;
static struct platform_driver platform_driver = { static struct platform_driver platform_driver = {
.driver = { .driver = {
.name = "dell-laptop", .name = "dell-laptop",
.owner = THIS_MODULE,
} }
}; };

View File

@ -961,7 +961,6 @@ static const struct dev_pm_ops eeepc_pm_ops = {
static struct platform_driver platform_driver = { static struct platform_driver platform_driver = {
.driver = { .driver = {
.name = EEEPC_LAPTOP_FILE, .name = EEEPC_LAPTOP_FILE,
.owner = THIS_MODULE,
.pm = &eeepc_pm_ops, .pm = &eeepc_pm_ops,
} }
}; };

View File

@ -559,7 +559,6 @@ static struct attribute_group fujitsupf_attribute_group = {
static struct platform_driver fujitsupf_driver = { static struct platform_driver fujitsupf_driver = {
.driver = { .driver = {
.name = "fujitsu-laptop", .name = "fujitsu-laptop",
.owner = THIS_MODULE,
} }
}; };

View File

@ -318,7 +318,6 @@ static struct platform_driver hdaps_driver = {
.probe = hdaps_probe, .probe = hdaps_probe,
.driver = { .driver = {
.name = "hdaps", .name = "hdaps",
.owner = THIS_MODULE,
.pm = &hdaps_pm, .pm = &hdaps_pm,
}, },
}; };

View File

@ -1006,7 +1006,6 @@ static const struct dev_pm_ops hp_wmi_pm_ops = {
static struct platform_driver hp_wmi_driver = { static struct platform_driver hp_wmi_driver = {
.driver = { .driver = {
.name = "hp-wmi", .name = "hp-wmi",
.owner = THIS_MODULE,
.pm = &hp_wmi_pm_ops, .pm = &hp_wmi_pm_ops,
}, },
.remove = __exit_p(hp_wmi_bios_remove), .remove = __exit_p(hp_wmi_bios_remove),

View File

@ -959,7 +959,6 @@ static struct platform_driver ideapad_acpi_driver = {
.remove = ideapad_acpi_remove, .remove = ideapad_acpi_remove,
.driver = { .driver = {
.name = "ideapad_acpi", .name = "ideapad_acpi",
.owner = THIS_MODULE,
.pm = &ideapad_pm, .pm = &ideapad_pm,
.acpi_match_table = ACPI_PTR(ideapad_device_ids), .acpi_match_table = ACPI_PTR(ideapad_device_ids),
}, },

View File

@ -133,7 +133,6 @@ static int mfld_pb_remove(struct platform_device *pdev)
static struct platform_driver mfld_pb_driver = { static struct platform_driver mfld_pb_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
}, },
.probe = mfld_pb_probe, .probe = mfld_pb_probe,
.remove = mfld_pb_remove, .remove = mfld_pb_remove,

View File

@ -555,7 +555,6 @@ static const struct platform_device_id therm_id_table[] = {
static struct platform_driver mid_thermal_driver = { static struct platform_driver mid_thermal_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.pm = &mid_thermal_pm, .pm = &mid_thermal_pm,
}, },
.probe = mid_thermal_probe, .probe = mid_thermal_probe,

View File

@ -288,7 +288,6 @@ static int oaktrail_remove(struct platform_device *pdev)
static struct platform_driver oaktrail_driver = { static struct platform_driver oaktrail_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
}, },
.probe = oaktrail_probe, .probe = oaktrail_probe,
.remove = oaktrail_remove, .remove = oaktrail_remove,

View File

@ -314,7 +314,6 @@ err2:
static struct platform_driver platform_pmic_gpio_driver = { static struct platform_driver platform_pmic_gpio_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
}, },
.probe = platform_pmic_gpio_probe, .probe = platform_pmic_gpio_probe,
}; };

View File

@ -573,7 +573,6 @@ static struct attribute_group msipf_old_attribute_group = {
static struct platform_driver msipf_driver = { static struct platform_driver msipf_driver = {
.driver = { .driver = {
.name = "msi-laptop-pf", .name = "msi-laptop-pf",
.owner = THIS_MODULE,
.pm = &msi_laptop_pm, .pm = &msi_laptop_pm,
}, },
}; };

View File

@ -82,7 +82,6 @@ static int samsungq10_remove(struct platform_device *pdev)
static struct platform_driver samsungq10_driver = { static struct platform_driver samsungq10_driver = {
.driver = { .driver = {
.name = KBUILD_MODNAME, .name = KBUILD_MODNAME,
.owner = THIS_MODULE,
}, },
.probe = samsungq10_probe, .probe = samsungq10_probe,
.remove = samsungq10_remove, .remove = samsungq10_remove,

View File

@ -581,7 +581,6 @@ static atomic_t sony_pf_users = ATOMIC_INIT(0);
static struct platform_driver sony_pf_driver = { static struct platform_driver sony_pf_driver = {
.driver = { .driver = {
.name = "sony-laptop", .name = "sony-laptop",
.owner = THIS_MODULE,
} }
}; };
static struct platform_device *sony_pf_device; static struct platform_device *sony_pf_device;

View File

@ -234,7 +234,6 @@ static const struct dev_pm_ops tc1100_pm_ops = {
static struct platform_driver tc1100_driver = { static struct platform_driver tc1100_driver = {
.driver = { .driver = {
.name = "tc1100-wmi", .name = "tc1100-wmi",
.owner = THIS_MODULE,
#ifdef CONFIG_PM #ifdef CONFIG_PM
.pm = &tc1100_pm_ops, .pm = &tc1100_pm_ops,
#endif #endif

View File

@ -972,7 +972,6 @@ static void tpacpi_shutdown_handler(struct platform_device *pdev)
static struct platform_driver tpacpi_pdriver = { static struct platform_driver tpacpi_pdriver = {
.driver = { .driver = {
.name = TPACPI_DRVR_NAME, .name = TPACPI_DRVR_NAME,
.owner = THIS_MODULE,
.pm = &tpacpi_pm, .pm = &tpacpi_pm,
}, },
.shutdown = tpacpi_shutdown_handler, .shutdown = tpacpi_shutdown_handler,
@ -981,7 +980,6 @@ static struct platform_driver tpacpi_pdriver = {
static struct platform_driver tpacpi_hwmon_pdriver = { static struct platform_driver tpacpi_hwmon_pdriver = {
.driver = { .driver = {
.name = TPACPI_HWMON_DRVR_NAME, .name = TPACPI_HWMON_DRVR_NAME,
.owner = THIS_MODULE,
}, },
}; };

View File

@ -71,7 +71,6 @@ static int xo1_rfkill_remove(struct platform_device *pdev)
static struct platform_driver xo1_rfkill_driver = { static struct platform_driver xo1_rfkill_driver = {
.driver = { .driver = {
.name = "xo1-rfkill", .name = "xo1-rfkill",
.owner = THIS_MODULE,
}, },
.probe = xo1_rfkill_probe, .probe = xo1_rfkill_probe,
.remove = xo1_rfkill_remove, .remove = xo1_rfkill_remove,