sparc: kernel: drop owner assignment from platform_drivers
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:20:15 +0000 (16:20 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:20:15 +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>
15 files changed:
arch/sparc/kernel/apc.c
arch/sparc/kernel/auxio_64.c
arch/sparc/kernel/central.c
arch/sparc/kernel/chmc.c
arch/sparc/kernel/leon_pci_grpci1.c
arch/sparc/kernel/leon_pci_grpci2.c
arch/sparc/kernel/pci_fire.c
arch/sparc/kernel/pci_psycho.c
arch/sparc/kernel/pci_sabre.c
arch/sparc/kernel/pci_schizo.c
arch/sparc/kernel/pci_sun4v.c
arch/sparc/kernel/pmc.c
arch/sparc/kernel/power.c
arch/sparc/kernel/time_32.c
arch/sparc/kernel/time_64.c

index eefda32..742f6c4 100644 (file)
@@ -178,7 +178,6 @@ MODULE_DEVICE_TABLE(of, apc_match);
 static struct platform_driver apc_driver = {
        .driver = {
                .name = "apc",
-               .owner = THIS_MODULE,
                .of_match_table = apc_match,
        },
        .probe          = apc_probe,
index 86e5577..086435c 100644 (file)
@@ -135,7 +135,6 @@ static struct platform_driver auxio_driver = {
        .probe          = auxio_probe,
        .driver = {
                .name = "auxio",
-               .owner = THIS_MODULE,
                .of_match_table = auxio_match,
        },
 };
index 052b5a4..4696958 100644 (file)
@@ -152,7 +152,6 @@ static struct platform_driver clock_board_driver = {
        .probe          = clock_board_probe,
        .driver = {
                .name = "clock_board",
-               .owner = THIS_MODULE,
                .of_match_table = clock_board_match,
        },
 };
@@ -257,7 +256,6 @@ static struct platform_driver fhc_driver = {
        .probe          = fhc_probe,
        .driver = {
                .name = "fhc",
-               .owner = THIS_MODULE,
                .of_match_table = fhc_match,
        },
 };
index dbb210d..0de4bcb 100644 (file)
@@ -810,7 +810,6 @@ MODULE_DEVICE_TABLE(of, us3mc_match);
 static struct platform_driver us3mc_driver = {
        .driver = {
                .name = "us3mc",
-               .owner = THIS_MODULE,
                .of_match_table = us3mc_match,
        },
        .probe          = us3mc_probe,
index c8bf26e..3382f7b 100644 (file)
@@ -708,7 +708,6 @@ static struct of_device_id grpci1_of_match[] = {
 static struct platform_driver grpci1_of_driver = {
        .driver = {
                .name = "grpci1",
-               .owner = THIS_MODULE,
                .of_match_table = grpci1_of_match,
        },
        .probe = grpci1_of_probe,
index e433a4d..94e392b 100644 (file)
@@ -900,7 +900,6 @@ static struct of_device_id grpci2_of_match[] = {
 static struct platform_driver grpci2_of_driver = {
        .driver = {
                .name = "grpci2",
-               .owner = THIS_MODULE,
                .of_match_table = grpci2_of_match,
        },
        .probe = grpci2_of_probe,
index e60fc6a..11a1f0d 100644 (file)
@@ -508,7 +508,6 @@ static const struct of_device_id fire_match[] = {
 static struct platform_driver fire_driver = {
        .driver = {
                .name = DRIVER_NAME,
-               .owner = THIS_MODULE,
                .of_match_table = fire_match,
        },
        .probe          = fire_probe,
index c647634..7dce27b 100644 (file)
@@ -604,7 +604,6 @@ static const struct of_device_id psycho_match[] = {
 static struct platform_driver psycho_driver = {
        .driver = {
                .name = DRIVER_NAME,
-               .owner = THIS_MODULE,
                .of_match_table = psycho_match,
        },
        .probe          = psycho_probe,
index 6f00d27..00a616f 100644 (file)
@@ -600,7 +600,6 @@ static const struct of_device_id sabre_match[] = {
 static struct platform_driver sabre_driver = {
        .driver = {
                .name = DRIVER_NAME,
-               .owner = THIS_MODULE,
                .of_match_table = sabre_match,
        },
        .probe          = sabre_probe,
index 8f76f23..432b3d6 100644 (file)
@@ -1495,7 +1495,6 @@ static const struct of_device_id schizo_match[] = {
 static struct platform_driver schizo_driver = {
        .driver = {
                .name = DRIVER_NAME,
-               .owner = THIS_MODULE,
                .of_match_table = schizo_match,
        },
        .probe          = schizo_probe,
index 49d33b1..47ddbd4 100644 (file)
@@ -1010,7 +1010,6 @@ static const struct of_device_id pci_sun4v_match[] = {
 static struct platform_driver pci_sun4v_driver = {
        .driver = {
                .name = DRIVER_NAME,
-               .owner = THIS_MODULE,
                .of_match_table = pci_sun4v_match,
        },
        .probe          = pci_sun4v_probe,
index 8b7297f..97d1231 100644 (file)
@@ -82,7 +82,6 @@ MODULE_DEVICE_TABLE(of, pmc_match);
 static struct platform_driver pmc_driver = {
        .driver = {
                .name = "pmc",
-               .owner = THIS_MODULE,
                .of_match_table = pmc_match,
        },
        .probe          = pmc_probe,
index 4cb23c4..1836cb9 100644 (file)
@@ -63,7 +63,6 @@ static struct platform_driver power_driver = {
        .probe          = power_probe,
        .driver = {
                .name = "power",
-               .owner = THIS_MODULE,
                .of_match_table = power_match,
        },
 };
index 5923d1e..2f80d23 100644 (file)
@@ -322,7 +322,6 @@ static struct platform_driver clock_driver = {
        .probe          = clock_probe,
        .driver = {
                .name = "rtc",
-               .owner = THIS_MODULE,
                .of_match_table = clock_match,
        },
 };
index 59da0c3..edbbeb1 100644 (file)
@@ -466,7 +466,6 @@ static struct platform_driver rtc_driver = {
        .probe          = rtc_probe,
        .driver = {
                .name = "rtc",
-               .owner = THIS_MODULE,
                .of_match_table = rtc_match,
        },
 };
@@ -499,7 +498,6 @@ static struct platform_driver bq4802_driver = {
        .probe          = bq4802_probe,
        .driver = {
                .name = "bq4802",
-               .owner = THIS_MODULE,
                .of_match_table = bq4802_match,
        },
 };
@@ -563,7 +561,6 @@ static struct platform_driver mostek_driver = {
        .probe          = mostek_probe,
        .driver = {
                .name = "mostek",
-               .owner = THIS_MODULE,
                .of_match_table = mostek_match,
        },
 };