char: tpm: drop owner assignment from platform_drivers
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:20:21 +0000 (16:20 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:20:21 +0000 (16:20 +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>
drivers/char/tpm/tpm_atmel.c
drivers/char/tpm/tpm_nsc.c
drivers/char/tpm/tpm_tis.c

index 6069d13ae4ac5ea657db7e9b22d745fea46390c7..435c8b9dd2f8fe64e6992fbf1ba5c5e8f7e462f6 100644 (file)
@@ -152,7 +152,6 @@ static SIMPLE_DEV_PM_OPS(tpm_atml_pm, tpm_pm_suspend, tpm_pm_resume);
 static struct platform_driver atml_drv = {
        .driver = {
                .name = "tpm_atmel",
-               .owner          = THIS_MODULE,
                .pm             = &tpm_atml_pm,
        },
 };
index 3179ec9cffdcbba1f3539df3474d9752b7c6599a..4d0a17ea8cde6be38446d3405ff901e55c3eb625 100644 (file)
@@ -258,7 +258,6 @@ static SIMPLE_DEV_PM_OPS(tpm_nsc_pm, tpm_pm_suspend, tpm_pm_resume);
 static struct platform_driver nsc_drv = {
        .driver          = {
                .name    = "tpm_nsc",
-               .owner   = THIS_MODULE,
                .pm      = &tpm_nsc_pm,
        },
 };
index 2c46734b266d9850c2a817ae1e97154b401c2f1c..6f1985496112225c857c51f8e2f753356d9c3989 100644 (file)
@@ -837,7 +837,6 @@ MODULE_PARM_DESC(hid, "Set additional specific HID for this driver to probe");
 static struct platform_driver tis_drv = {
        .driver = {
                .name = "tpm_tis",
-               .owner          = THIS_MODULE,
                .pm             = &tpm_tis_pm,
        },
 };