]> git.karo-electronics.de Git - linux-beck.git/commitdiff
parport: drop owner assignment from platform_drivers
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:20 +0000 (16:21 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:20 +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>
drivers/parport/parport_amiga.c
drivers/parport/parport_ax88796.c
drivers/parport/parport_pc.c
drivers/parport/parport_sunbpp.c

index 26ecdea84fb511373fc8a0922f7afc3dd45ddc18..9c68f2aec4ff7f5431057ce5c4978a4894e64bec 100644 (file)
@@ -239,7 +239,6 @@ static struct platform_driver amiga_parallel_driver = {
        .remove = __exit_p(amiga_parallel_remove),
        .driver   = {
                .name   = "amiga-parallel",
-               .owner  = THIS_MODULE,
        },
 };
 
index 7c5d86696eed92c274642ef68c3eeb1fc569cf98..8f8c9f3aa6910fe80ea92a9acdc905571518e540 100644 (file)
@@ -412,7 +412,6 @@ MODULE_ALIAS("platform:ax88796-pp");
 static struct platform_driver axdrv = {
        .driver         = {
                .name   = "ax88796-pp",
-               .owner  = THIS_MODULE,
        },
        .probe          = parport_ax88796_probe,
        .remove         = parport_ax88796_remove,
index f721299eb1baee70059a2ac33bdb8b73ba249dae..7ae20b7a56bcb30c1b9d435458afb1444334dc8b 100644 (file)
@@ -3011,7 +3011,6 @@ static int parport_pc_platform_probe(struct platform_device *pdev)
 
 static struct platform_driver parport_pc_platform_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = "parport_pc",
        },
        .probe          = parport_pc_platform_probe,
index dffd6d0bd15b7795ec1a1d796b5652e8c540944c..01cf1c1a841a4de23af9e84f7c40cea7c552ca16 100644 (file)
@@ -362,7 +362,6 @@ MODULE_DEVICE_TABLE(of, bpp_match);
 static struct platform_driver bpp_sbus_driver = {
        .driver = {
                .name = "bpp",
-               .owner = THIS_MODULE,
                .of_match_table = bpp_match,
        },
        .probe          = bpp_probe,