]> git.karo-electronics.de Git - linux-beck.git/commitdiff
platform: x86: drop owner assignment from platform_drivers
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:27 +0000 (16:21 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:27 +0000 (16:21 +0200)
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>
22 files changed:
drivers/platform/x86/acer-wmi.c
drivers/platform/x86/acerhdf.c
drivers/platform/x86/alienware-wmi.c
drivers/platform/x86/amilo-rfkill.c
drivers/platform/x86/asus-laptop.c
drivers/platform/x86/compal-laptop.c
drivers/platform/x86/dell-laptop.c
drivers/platform/x86/eeepc-laptop.c
drivers/platform/x86/fujitsu-laptop.c
drivers/platform/x86/hdaps.c
drivers/platform/x86/hp-wmi.c
drivers/platform/x86/ideapad-laptop.c
drivers/platform/x86/intel_mid_powerbtn.c
drivers/platform/x86/intel_mid_thermal.c
drivers/platform/x86/intel_oaktrail.c
drivers/platform/x86/intel_pmic_gpio.c
drivers/platform/x86/msi-laptop.c
drivers/platform/x86/samsung-q10.c
drivers/platform/x86/sony-laptop.c
drivers/platform/x86/tc1100-wmi.c
drivers/platform/x86/thinkpad_acpi.c
drivers/platform/x86/xo1-rfkill.c

index 96a0b75c52c9a6232c99b18e61751f3eb62e940a..5b3bca5470e3368d55f26bb4cb95f88eb492dc56 100644 (file)
@@ -2106,7 +2106,6 @@ static void acer_platform_shutdown(struct platform_device *device)
 static struct platform_driver acer_platform_driver = {
        .driver = {
                .name = "acer-wmi",
-               .owner = THIS_MODULE,
                .pm = &acer_pm,
        },
        .probe = acer_platform_probe,
index f94467c0522506b51247c028cd79fee2767cbcaf..aaf37c5f12f97bd6e548a8cf687a88f745ed7d4f 100644 (file)
@@ -533,7 +533,6 @@ static const struct dev_pm_ops acerhdf_pm_ops = {
 static struct platform_driver acerhdf_driver = {
        .driver = {
                .name  = "acerhdf",
-               .owner = THIS_MODULE,
                .pm    = &acerhdf_pm_ops,
        },
        .probe = acerhdf_probe,
index c5af23b64438514f3d6e95eed62303557be4ff34..1e1e594238892a3bf18d99ee0e4e35d58ac96d1f 100644 (file)
@@ -157,7 +157,6 @@ static struct platform_zone *zone_data;
 static struct platform_driver platform_driver = {
        .driver = {
                   .name = "alienware-wmi",
-                  .owner = THIS_MODULE,
                   }
 };
 
index da36b5e824d467bbfb8b35d0a50e652cd4153a90..0157625cb918db90057c757ef8ddabb93803d931 100644 (file)
@@ -138,7 +138,6 @@ static int amilo_rfkill_remove(struct platform_device *device)
 static struct platform_driver amilo_rfkill_driver = {
        .driver = {
                .name   = KBUILD_MODNAME,
-               .owner  = THIS_MODULE,
        },
        .probe  = amilo_rfkill_probe,
        .remove = amilo_rfkill_remove,
index 7f4dc6f51f8afdf9df7984818585e10bf2047280..05647f1a427e075dcb862ea94f97c53ea01ab876 100644 (file)
@@ -1699,7 +1699,6 @@ static void asus_platform_exit(struct asus_laptop *asus)
 static struct platform_driver platform_driver = {
        .driver = {
                .name = ASUS_LAPTOP_FILE,
-               .owner = THIS_MODULE,
        },
 };
 
index 26bfd7bb5c1350822b23bb6814dd6784738d91b1..15c0fab2bfa10496d466e70e0537cc0ad08768d4 100644 (file)
@@ -710,7 +710,6 @@ static int compal_remove(struct platform_device *);
 static struct platform_driver compal_driver = {
        .driver = {
                .name = DRIVER_NAME,
-               .owner = THIS_MODULE,
        },
        .probe  = compal_probe,
        .remove = compal_remove,
index 233d2ee598a62cdb5c1b05cc0ef77737cb48f98a..f6a28d7161f5def0a5a3bf6164607b11cb1f8291 100644 (file)
@@ -84,7 +84,6 @@ static struct calling_interface_token *da_tokens;
 static struct platform_driver platform_driver = {
        .driver = {
                .name = "dell-laptop",
-               .owner = THIS_MODULE,
        }
 };
 
index db79902c4a8ee86ee17c8c27039fd0d868d0792b..5a54d35a61de6e4a8abc50f8619c9fa150ca24b7 100644 (file)
@@ -961,7 +961,6 @@ static const struct dev_pm_ops eeepc_pm_ops = {
 static struct platform_driver platform_driver = {
        .driver = {
                .name = EEEPC_LAPTOP_FILE,
-               .owner = THIS_MODULE,
                .pm = &eeepc_pm_ops,
        }
 };
index 2655d4a988f36ae1ac18510b850d7b7b70a741ba..be55bd78b5036c547dface3fbd2995a7acb47323 100644 (file)
@@ -559,7 +559,6 @@ static struct attribute_group fujitsupf_attribute_group = {
 static struct platform_driver fujitsupf_driver = {
        .driver = {
                   .name = "fujitsu-laptop",
-                  .owner = THIS_MODULE,
                   }
 };
 
index 777c7e3dda51ccb73dd6939717d95904ae5753cc..458e6c948c11e4b6d6e24b67535020e0047d6f21 100644 (file)
@@ -318,7 +318,6 @@ static struct platform_driver hdaps_driver = {
        .probe = hdaps_probe,
        .driver = {
                .name = "hdaps",
-               .owner = THIS_MODULE,
                .pm = &hdaps_pm,
        },
 };
index 4c559640dcbaf4bf0be8eb1e349dc3e5fa567e47..0ab2b377a778aaf673815736f305b0c8edb5ff3a 100644 (file)
@@ -1006,7 +1006,6 @@ static const struct dev_pm_ops hp_wmi_pm_ops = {
 static struct platform_driver hp_wmi_driver = {
        .driver = {
                .name = "hp-wmi",
-               .owner = THIS_MODULE,
                .pm = &hp_wmi_pm_ops,
        },
        .remove = __exit_p(hp_wmi_bios_remove),
index 02152de135b5c43b79318c6c5ac7971f0723e478..60499bc1fdedd5869cee6c4311aa57629b26c6a5 100644 (file)
@@ -959,7 +959,6 @@ static struct platform_driver ideapad_acpi_driver = {
        .remove = ideapad_acpi_remove,
        .driver = {
                .name   = "ideapad_acpi",
-               .owner  = THIS_MODULE,
                .pm     = &ideapad_pm,
                .acpi_match_table = ACPI_PTR(ideapad_device_ids),
        },
index 8d6775266d66263bac3bdd45d7a5f580e598731e..22606d6b2af3faeed925a00fb7488ccab36c8156 100644 (file)
@@ -133,7 +133,6 @@ static int mfld_pb_remove(struct platform_device *pdev)
 static struct platform_driver mfld_pb_driver = {
        .driver = {
                .name = DRIVER_NAME,
-               .owner = THIS_MODULE,
        },
        .probe  = mfld_pb_probe,
        .remove = mfld_pb_remove,
index ab7860a21a2258925c9ff4c6b3621dd59bbbcf78..0944e834af8d25b848524247f6a5231935d4177b 100644 (file)
@@ -555,7 +555,6 @@ static const struct platform_device_id therm_id_table[] = {
 static struct platform_driver mid_thermal_driver = {
        .driver = {
                .name = DRIVER_NAME,
-               .owner = THIS_MODULE,
                .pm = &mid_thermal_pm,
        },
        .probe = mid_thermal_probe,
index 4bc96041678573ec89eed8cf8c0e185f7e53d864..0afaaef5711fb6e2b0c489ed480e09bfdf1de275 100644 (file)
@@ -288,7 +288,6 @@ static int oaktrail_remove(struct platform_device *pdev)
 static struct platform_driver oaktrail_driver = {
        .driver = {
                .name = DRIVER_NAME,
-               .owner = THIS_MODULE,
        },
        .probe  = oaktrail_probe,
        .remove = oaktrail_remove,
index 04fed00b88e9546a159a6585b6a0326da55e16a2..709f0afdafa866da408afc364604697be7a29bc7 100644 (file)
@@ -314,7 +314,6 @@ err2:
 static struct platform_driver platform_pmic_gpio_driver = {
        .driver = {
                .name           = DRIVER_NAME,
-               .owner          = THIS_MODULE,
        },
        .probe          = platform_pmic_gpio_probe,
 };
index 62f8030b9e77eedf6792a3f173cfbae5eabd4a46..a3f06cb1063fda0655da8ca60f715d6cc35486c0 100644 (file)
@@ -573,7 +573,6 @@ static struct attribute_group msipf_old_attribute_group = {
 static struct platform_driver msipf_driver = {
        .driver = {
                .name = "msi-laptop-pf",
-               .owner = THIS_MODULE,
                .pm = &msi_laptop_pm,
        },
 };
index 28d12bda3ac1a2900b6bff5c20af04d9ecbd153e..e6aac725a0af75af40952aa542bc610fc5ce6d0d 100644 (file)
@@ -82,7 +82,6 @@ static int samsungq10_remove(struct platform_device *pdev)
 static struct platform_driver samsungq10_driver = {
        .driver         = {
                .name   = KBUILD_MODNAME,
-               .owner  = THIS_MODULE,
        },
        .probe          = samsungq10_probe,
        .remove         = samsungq10_remove,
index 26ad9ff12ac59f3dee03495a2e01f9b5489fc808..a1a0fd72e9bf671516544c65421c175d85d12c92 100644 (file)
@@ -581,7 +581,6 @@ static atomic_t sony_pf_users = ATOMIC_INIT(0);
 static struct platform_driver sony_pf_driver = {
        .driver = {
                   .name = "sony-laptop",
-                  .owner = THIS_MODULE,
                   }
 };
 static struct platform_device *sony_pf_device;
index 6a6ea28a7e51df054ff2f514fde39d7d9f10b264..e36542564131018cb5985a19ad52fea1c2b46726 100644 (file)
@@ -234,7 +234,6 @@ static const struct dev_pm_ops tc1100_pm_ops = {
 static struct platform_driver tc1100_driver = {
        .driver = {
                .name = "tc1100-wmi",
-               .owner = THIS_MODULE,
 #ifdef CONFIG_PM
                .pm = &tc1100_pm_ops,
 #endif
index cf0f89364d4411f8321bdf69bff7b64725b5612f..6414cfe5d8489e951d343b853fb5a6bcc3103299 100644 (file)
@@ -972,7 +972,6 @@ static void tpacpi_shutdown_handler(struct platform_device *pdev)
 static struct platform_driver tpacpi_pdriver = {
        .driver = {
                .name = TPACPI_DRVR_NAME,
-               .owner = THIS_MODULE,
                .pm = &tpacpi_pm,
        },
        .shutdown = tpacpi_shutdown_handler,
@@ -981,7 +980,6 @@ static struct platform_driver tpacpi_pdriver = {
 static struct platform_driver tpacpi_hwmon_pdriver = {
        .driver = {
                .name = TPACPI_HWMON_DRVR_NAME,
-               .owner = THIS_MODULE,
        },
 };
 
index 4bd17248dfc612c627bede36e6a3ebc64fca43f7..e46fa9cebc7d3e2300558578537717e719652f0b 100644 (file)
@@ -71,7 +71,6 @@ static int xo1_rfkill_remove(struct platform_device *pdev)
 static struct platform_driver xo1_rfkill_driver = {
        .driver = {
                .name = "xo1-rfkill",
-               .owner = THIS_MODULE,
        },
        .probe          = xo1_rfkill_probe,
        .remove         = xo1_rfkill_remove,